diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-16 11:03:31 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-11-16 11:03:31 +0000 |
commit | ab2d0948f733b7e4a43c9ae6b30a8ea3df12b495 (patch) | |
tree | 3229db716be20b81384b0f2bc9f8f0fcc60bd1c1 /os | |
parent | 36b1b9705dda794bfd675324af9e397bb7162537 (diff) | |
download | ChibiOS-ab2d0948f733b7e4a43c9ae6b30a8ea3df12b495.tar.gz ChibiOS-ab2d0948f733b7e4a43c9ae6b30a8ea3df12b495.tar.bz2 ChibiOS-ab2d0948f733b7e4a43c9ae6b30a8ea3df12b495.zip |
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
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();
|