aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/hal.c')
-rw-r--r--os/hal/src/hal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/src/hal.c b/os/hal/src/hal.c
index 1991987a8..9023bf586 100644
--- a/os/hal/src/hal.c
+++ b/os/hal/src/hal.c
@@ -62,8 +62,12 @@ void halInit(void) {
hal_lld_init();
#if (HAL_USE_PAL == TRUE) || defined(__DOXYGEN__)
+#if defined(PAL_NEW_INIT)
+ palInit();
+#else
palInit(&pal_default_config);
#endif
+#endif
#if (HAL_USE_ADC == TRUE) || defined(__DOXYGEN__)
adcInit();
#endif