diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/include/hal.h | 5 | ||||
-rw-r--r-- | os/hal/src/hal.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/os/hal/include/hal.h b/os/hal/include/hal.h index 5fda51fef..147feeb28 100644 --- a/os/hal/include/hal.h +++ b/os/hal/include/hal.h @@ -76,6 +76,11 @@ #include "mmc_spi.h"
#include "serial_usb.h"
+/* Community drivers.*/
+#if HAL_USE_COMMUNITY
+#include "hal_community.h"
+#endif
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
diff --git a/os/hal/src/hal.c b/os/hal/src/hal.c index b49f7383e..156760b32 100644 --- a/os/hal/src/hal.c +++ b/os/hal/src/hal.c @@ -119,6 +119,12 @@ void halInit(void) { #if HAL_USE_RTC || defined(__DOXYGEN__)
rtcInit();
#endif
+
+ /* Community driver overlay initialization.*/
+#if HAL_USE_COMMUNITY || defined(__DOXYGEN__)
+ halCommunityInit();
+#endif
+
/* Board specific initialization.*/
boardInit();
|