ChibiOS/HAL
6.1.0
|
Hardware Abstraction Layer. More...
Hardware Abstraction Layer.
The HAL (Hardware Abstraction Layer) driver performs the system initialization and includes the platform support code shared by the other drivers. This driver does contain any API function except for a general initialization function halInit()
that must be invoked before any HAL service can be used, usually the HAL initialization should be performed immediately before the kernel initialization.
Some HAL driver implementations also offer a custom early clock setup function that can be invoked before the C runtime initialization in order to accelerate the startup time.
Macros | |
#define | _CHIBIOS_HAL_ |
ChibiOS/HAL identification macro. More... | |
#define | CH_HAL_STABLE 1 |
Stable release flag. More... | |
ChibiOS/HAL version identification | |
#define | HAL_VERSION "6.1.0" |
HAL version string. More... | |
#define | CH_HAL_MAJOR 6 |
HAL version major number. More... | |
#define | CH_HAL_MINOR 1 |
HAL version minor number. More... | |
#define | CH_HAL_PATCH 0 |
HAL version patch number. More... | |
Return codes | |
#define | HAL_SUCCESS false |
#define | HAL_FAILED true |
Platform identification macros | |
#define | PLATFORM_NAME "templates" |
Functions | |
void | halInit (void) |
HAL initialization. More... | |
void | hal_lld_init (void) |
Low level HAL driver initialization. More... | |
void halInit | ( | void | ) |
HAL initialization.
This function invokes the low level initialization code then initializes all the drivers enabled in the HAL. Finally the board-specific initialization is performed by invoking boardInit()
(usually defined in board.c
).
Definition at line 56 of file hal.c.
References adcInit(), canInit(), cryInit(), dacInit(), extInit(), gptInit(), hal_lld_init(), i2cInit(), i2sInit(), icuInit(), macInit(), mmcInit(), osalInit(), palInit, pwmInit(), qspiInit(), rtcInit(), sdcInit(), sdInit(), sduInit(), spiInit(), stInit(), uartInit(), usbInit(), and wdgInit().