diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 11:53:28 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-07-28 22:55:48 -0400 |
commit | 9bc3a29ee4ce2816c00564c7f432a9bef94fbee2 (patch) | |
tree | 4a65240a2f4a18ab30d973fa8ae0e931559120ec /src/stm32f4/internal.h | |
parent | bc9c8cd7a052c03301995edafde62385ec7fb8a8 (diff) | |
download | kutter-9bc3a29ee4ce2816c00564c7f432a9bef94fbee2.tar.gz kutter-9bc3a29ee4ce2816c00564c7f432a9bef94fbee2.tar.xz kutter-9bc3a29ee4ce2816c00564c7f432a9bef94fbee2.zip |
stm32f4: Add support for full range of GPIO pins
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32f4/internal.h')
-rw-r--r-- | src/stm32f4/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stm32f4/internal.h b/src/stm32f4/internal.h index 062d7c65..22720a96 100644 --- a/src/stm32f4/internal.h +++ b/src/stm32f4/internal.h @@ -4,6 +4,8 @@ #include "stm32f4xx.h" +extern GPIO_TypeDef * const digital_regs[]; + #define GPIO(PORT, NUM) (((PORT)-'A') * 16 + (NUM)) #define GPIO2PORT(PIN) ((PIN) / 16) #define GPIO2BIT(PIN) (1<<((PIN) % 16)) |