diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-02 11:35:27 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-02 11:35:27 -0400 |
commit | cf6e8a2eee59ced9dcdfb02295bbaf9559e9975e (patch) | |
tree | 8d2d6b519de502cd95e587c1e347d03bfe7d175d /src | |
parent | 430ad0b65841419e2e24ab926314236c01a07476 (diff) | |
download | kutter-cf6e8a2eee59ced9dcdfb02295bbaf9559e9975e.tar.gz kutter-cf6e8a2eee59ced9dcdfb02295bbaf9559e9975e.tar.xz kutter-cf6e8a2eee59ced9dcdfb02295bbaf9559e9975e.zip |
stm32: Define PGx pins on stm32f103
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/stm32/gpio.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/stm32/gpio.c b/src/stm32/gpio.c index 58919bdd..4b7649dc 100644 --- a/src/stm32/gpio.c +++ b/src/stm32/gpio.c @@ -23,8 +23,10 @@ DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 16); #ifdef GPIOF DECL_ENUMERATION_RANGE("pin", "PF0", GPIO('F', 0), 16); #endif -#ifdef GPIOH +#ifdef GPIOG DECL_ENUMERATION_RANGE("pin", "PG0", GPIO('G', 0), 16); +#endif +#ifdef GPIOH DECL_ENUMERATION_RANGE("pin", "PH0", GPIO('H', 0), 16); #endif #ifdef GPIOI @@ -42,8 +44,11 @@ GPIO_TypeDef * const digital_regs[] = { #ifdef GPIOF ['F' - 'A'] = GPIOF, #endif +#ifdef GPIOG + ['G' - 'A'] = GPIOG, +#endif #ifdef GPIOH - ['G' - 'A'] = GPIOG, GPIOH, + ['H' - 'A'] = GPIOH, #endif #ifdef GPIOI ['I' - 'A'] = GPIOI, |