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.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/os/hal/src/hal.c b/os/hal/src/hal.c
index 4cf145059..beff1c8ad 100644
--- a/os/hal/src/hal.c
+++ b/os/hal/src/hal.c
@@ -46,6 +46,8 @@
/**
* @brief HAL initialization.
+ * @details This function invokes the low level initialization code then
+ * initializes all the drivers enabled in the HAL.
*
* @init
*/
@@ -53,34 +55,34 @@ void halInit(void) {
hal_lld_init();
-#if HAL_USE_PAL
+#if HAL_USE_PAL || defined(__DOXYGEN__)
palInit(&pal_default_config);
#endif
-#if HAL_USE_ADC
+#if HAL_USE_ADC || defined(__DOXYGEN__)
adcInit();
#endif
-#if HAL_USE_CAN
+#if HAL_USE_CAN || defined(__DOXYGEN__)
canInit();
#endif
-#if HAL_USE_I2C
+#if HAL_USE_I2C || defined(__DOXYGEN__)
i2cInit();
#endif
-#if HAL_USE_MAC
+#if HAL_USE_MAC || defined(__DOXYGEN__)
macInit();
#endif
-#if HAL_USE_PWM
+#if HAL_USE_PWM || defined(__DOXYGEN__)
pwmInit();
#endif
-#if HAL_USE_SERIAL
+#if HAL_USE_SERIAL || defined(__DOXYGEN__)
sdInit();
#endif
-#if HAL_USE_SPI
+#if HAL_USE_SPI || defined(__DOXYGEN__)
spiInit();
#endif
-#if HAL_USE_MMC_SPI
+#if HAL_USE_MMC_SPI || defined(__DOXYGEN__)
mmcInit();
#endif
-#if HAL_USE_UART
+#if HAL_USE_UART || defined(__DOXYGEN__)
uartInit();
#endif
}