aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-12-01 10:43:30 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-12-01 10:43:30 +0000
commit3253fc67035a31b1f08d51b46ca54a26fe499a9b (patch)
tree167848716440cbadd5e3ac0c1c36ae79b0380f45 /os/hal/src/hal.c
parent921b4021335876f522c06e50f44146ddcbae7d6d (diff)
downloadChibiOS-3253fc67035a31b1f08d51b46ca54a26fe499a9b.tar.gz
ChibiOS-3253fc67035a31b1f08d51b46ca54a26fe499a9b.tar.bz2
ChibiOS-3253fc67035a31b1f08d51b46ca54a26fe499a9b.zip
Provision for new PAL initialization function.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11096 35acf78f-673a-0410-8e92-d51de3d6d3f4
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