Skip to content

Commit e1f038b

Browse files
authored
Update CheckVariant.ino
1 parent befed73 commit e1f038b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/NonReg/CheckVariant/CheckVariant.ino

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@
66

77
#include "utils.h"
88

9+
#if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION <= 0x01090000)
10+
#error "This sketch is not compatible with core version prior to 2.0.0"
11+
#endif
12+
913
#define PORTx(pn) (char)('A' + STM_PORT(pn))
1014
#define PINx(pn) STM_PIN(pn)
1115

16+
#ifndef LED_BUILTIN
17+
#define LED_BUILTIN PNUM_NOT_DEFINED
18+
#endif
19+
1220
/*
1321
Initial check of Serial to be sure we can further print on serial
1422
Returns true in case of test passed

0 commit comments

Comments
 (0)