summaryrefslogtreecommitdiff
path: root/ports/stm/common-hal/microcontroller/Pin.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm/common-hal/microcontroller/Pin.c')
-rw-r--r--ports/stm/common-hal/microcontroller/Pin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/stm/common-hal/microcontroller/Pin.c b/ports/stm/common-hal/microcontroller/Pin.c
index 2c513f4aa..5e131c310 100644
--- a/ports/stm/common-hal/microcontroller/Pin.c
+++ b/ports/stm/common-hal/microcontroller/Pin.c
@@ -36,7 +36,10 @@
bool neopixel_in_use;
#endif
-#if defined(LQFP144)
+#if defined(TFBGA216)
+ #define GPIO_PORT_COUNT 11
+ GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH, GPIOI, GPIOJ, GPIOK};
+#elif defined(LQFP144)
#define GPIO_PORT_COUNT 7
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG};
#elif defined(LQFP100_f4) || (LQFP100_x7)