Skip to content

Commit c2bfff7

Browse files
committed
Fix referencing of pins that have non-existing GPIO ports before them (temporary)
1 parent 2dd5eb2 commit c2bfff7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

cores/arduino/gd32/PortNames.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,38 @@ typedef enum {
3939
PORTB,
4040
#if defined GPIOC
4141
PORTC,
42+
#else
43+
PORTC_NOT_THERE,
4244
#endif
4345
#if defined GPIOD
4446
PORTD,
47+
#else
48+
PORTD_NOT_THERE,
4549
#endif
4650
#if defined GPIOE
4751
PORTE,
52+
#else
53+
PORTE_NOT_THERE,
4854
#endif
4955
#if defined GPIOF
5056
PORTF,
57+
#else
58+
PORTF_NOT_THERE,
5159
#endif
5260
#if defined GPIOG
5361
PORTG,
62+
#else
63+
PORTG_NOT_THERE,
5464
#endif
5565
#if defined GPIOH
5666
PORTH,
67+
#else
68+
PORTH_NOT_THERE,
5769
#endif
5870
#if defined GPIOI
5971
PORTI,
72+
#else
73+
PORTI_NOT_THERE,
6074
#endif
6175
PORTEND,
6276
LastPort = PORTEND - 1

0 commit comments

Comments
 (0)