stm32: Define PGx pins on stm32f103
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
430ad0b658
commit
cf6e8a2eee
|
@ -23,8 +23,10 @@ DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 16);
|
||||||
#ifdef GPIOF
|
#ifdef GPIOF
|
||||||
DECL_ENUMERATION_RANGE("pin", "PF0", GPIO('F', 0), 16);
|
DECL_ENUMERATION_RANGE("pin", "PF0", GPIO('F', 0), 16);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPIOH
|
#ifdef GPIOG
|
||||||
DECL_ENUMERATION_RANGE("pin", "PG0", GPIO('G', 0), 16);
|
DECL_ENUMERATION_RANGE("pin", "PG0", GPIO('G', 0), 16);
|
||||||
|
#endif
|
||||||
|
#ifdef GPIOH
|
||||||
DECL_ENUMERATION_RANGE("pin", "PH0", GPIO('H', 0), 16);
|
DECL_ENUMERATION_RANGE("pin", "PH0", GPIO('H', 0), 16);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPIOI
|
#ifdef GPIOI
|
||||||
|
@ -42,8 +44,11 @@ GPIO_TypeDef * const digital_regs[] = {
|
||||||
#ifdef GPIOF
|
#ifdef GPIOF
|
||||||
['F' - 'A'] = GPIOF,
|
['F' - 'A'] = GPIOF,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef GPIOG
|
||||||
|
['G' - 'A'] = GPIOG,
|
||||||
|
#endif
|
||||||
#ifdef GPIOH
|
#ifdef GPIOH
|
||||||
['G' - 'A'] = GPIOG, GPIOH,
|
['H' - 'A'] = GPIOH,
|
||||||
#endif
|
#endif
|
||||||
#ifdef GPIOI
|
#ifdef GPIOI
|
||||||
['I' - 'A'] = GPIOI,
|
['I' - 'A'] = GPIOI,
|
||||||
|
|
Loading…
Reference in New Issue