From ab2d0948f733b7e4a43c9ae6b30a8ea3df12b495 Mon Sep 17 00:00:00 2001 From: barthess Date: Sun, 16 Nov 2014 11:03:31 +0000 Subject: Community support imporovements. Added hooks simplifying adding of new hal modules in community repo. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7516 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/hal.h | 5 +++++ os/hal/src/hal.c | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'os/hal') 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(); -- cgit v1.2.3