April 2020
Intermediate to advanced
294 pages
7h 53m
English
The stm32l4xx_hal_conf.h module defines which peripheral modules are defined and enabled within the code base. For example, if the target device supports CAN, the following definition would be created:
#define HAL_CAN_MODULE_ENABLED
If CAN was not supported by the device, then that definition would be commented out so that it is not included in the code base. A snippet from the stm32l4xx_hal_conf.h module is shown in the following code:
/* ######################### Module Selection ###################### *//** * @brief This is the list of modules to be used in the HAL driver */#define HAL_MODULE_ENABLEd#define HAL_ADC_MODULE_ENABLED#define HAL_CAN_MODULE_ENABLED/* #define HAL_COMP_MODULE_ENABLED */#define HAL_CORTEX_MODULE_ENABLED ...
Read now
Unlock full access