Skip to content

Commit

Permalink
Fix referencing of pins that have non-existing GPIO ports before them…
Browse files Browse the repository at this point in the history
… (temporary)
  • Loading branch information
maxgerhardt committed May 7, 2023
1 parent 2dd5eb2 commit c2bfff7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cores/arduino/gd32/PortNames.h
Expand Up @@ -39,24 +39,38 @@ typedef enum {
PORTB,
#if defined GPIOC
PORTC,
#else
PORTC_NOT_THERE,
#endif
#if defined GPIOD
PORTD,
#else
PORTD_NOT_THERE,
#endif
#if defined GPIOE
PORTE,
#else
PORTE_NOT_THERE,
#endif
#if defined GPIOF
PORTF,
#else
PORTF_NOT_THERE,
#endif
#if defined GPIOG
PORTG,
#else
PORTG_NOT_THERE,
#endif
#if defined GPIOH
PORTH,
#else
PORTH_NOT_THERE,
#endif
#if defined GPIOI
PORTI,
#else
PORTI_NOT_THERE,
#endif
PORTEND,
LastPort = PORTEND - 1
Expand Down

0 comments on commit c2bfff7

Please sign in to comment.