aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM8L/pal_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM8L/pal_lld.h')
-rw-r--r--os/hal/platforms/STM8L/pal_lld.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/os/hal/platforms/STM8L/pal_lld.h b/os/hal/platforms/STM8L/pal_lld.h
index 6cf2afb26..347fed85a 100644
--- a/os/hal/platforms/STM8L/pal_lld.h
+++ b/os/hal/platforms/STM8L/pal_lld.h
@@ -58,10 +58,14 @@
* or whole ports can be reprogrammed at later time.
*/
typedef struct {
-#if defined(STM8L15X_MD) || defined(__DOXYGEN__)
- GPIO_TypeDef P[7];
-#elif defined(STM8L15X_MDP) || defined(STM8L15X_HD)
+#if STM8L_HAS_GPIOI || defined(__DOXYGEN__)
GPIO_TypeDef P[9];
+#elif STM8L_HAS_GPIOH || defined(__DOXYGEN__)
+ GPIO_TypeDef P[8];
+#elif STM8L_HAS_GPIOG || defined(__DOXYGEN__)
+ GPIO_TypeDef P[7];
+#else
+ GPIO_TypeDef P[6];
#endif
} PALConfig;