|
|
@ -37,40 +37,43 @@ extern "C" { |
|
|
|
/**
|
|
|
|
* @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_CAN_LEGACY_MODULE_ENABLED
|
|
|
|
//#define HAL_CEC_MODULE_ENABLED
|
|
|
|
//#define HAL_CORTEX_MODULE_ENABLED
|
|
|
|
//#define HAL_CRC_MODULE_ENABLED
|
|
|
|
//#define HAL_DAC_MODULE_ENABLED
|
|
|
|
//#define HAL_DMA_MODULE_ENABLED
|
|
|
|
//#define HAL_ETH_MODULE_ENABLED
|
|
|
|
//#define HAL_EXTI_MODULE_ENABLED
|
|
|
|
//#define HAL_FLASH_MODULE_ENABLED
|
|
|
|
//#define HAL_GPIO_MODULE_ENABLED
|
|
|
|
//#define HAL_HCD_MODULE_ENABLED
|
|
|
|
//#define HAL_I2C_MODULE_ENABLED
|
|
|
|
//#define HAL_I2S_MODULE_ENABLED
|
|
|
|
//#define HAL_IRDA_MODULE_ENABLED
|
|
|
|
//#define HAL_IWDG_MODULE_ENABLED
|
|
|
|
//#define HAL_NAND_MODULE_ENABLED
|
|
|
|
//#define HAL_NOR_MODULE_ENABLED
|
|
|
|
//#define HAL_PCCARD_MODULE_ENABLED
|
|
|
|
//#define HAL_PCD_MODULE_ENABLED
|
|
|
|
//#define HAL_PWR_MODULE_ENABLED
|
|
|
|
//#define HAL_RCC_MODULE_ENABLED
|
|
|
|
//#define HAL_RTC_MODULE_ENABLED
|
|
|
|
//#define HAL_SD_MODULE_ENABLED
|
|
|
|
//#define HAL_SMARTCARD_MODULE_ENABLED
|
|
|
|
//#define HAL_SPI_MODULE_ENABLED
|
|
|
|
//#define HAL_SRAM_MODULE_ENABLED
|
|
|
|
//#define HAL_TIM_MODULE_ENABLED
|
|
|
|
//#define HAL_UART_MODULE_ENABLED
|
|
|
|
//#define HAL_USART_MODULE_ENABLED
|
|
|
|
//#define HAL_WWDG_MODULE_ENABLED
|
|
|
|
//#define HAL_MMC_MODULE_ENABLED
|
|
|
|
#define HAL_MODULE_ENABLED |
|
|
|
#define HAL_ADC_MODULE_ENABLED |
|
|
|
#define HAL_CRC_MODULE_ENABLED |
|
|
|
#define HAL_DMA_MODULE_ENABLED |
|
|
|
#define HAL_EXTI_MODULE_ENABLED |
|
|
|
#define HAL_FLASH_MODULE_ENABLED |
|
|
|
#define HAL_GPIO_MODULE_ENABLED |
|
|
|
#define HAL_I2C_MODULE_ENABLED |
|
|
|
#define HAL_IWDG_MODULE_ENABLED |
|
|
|
#define HAL_RCC_MODULE_ENABLED |
|
|
|
#define HAL_SPI_MODULE_ENABLED |
|
|
|
#define HAL_SRAM_MODULE_ENABLED |
|
|
|
#define HAL_TIM_MODULE_ENABLED |
|
|
|
#define HAL_USART_MODULE_ENABLED |
|
|
|
#define HAL_CORTEX_MODULE_ENABLED |
|
|
|
//#define HAL_UART_MODULE_ENABLED // by default
|
|
|
|
//#define HAL_PCD_MODULE_ENABLED // Since STM32 v3.10700.191028 this is automatically added if any type of USB is enabled (as in Arduino IDE)
|
|
|
|
#define HAL_SD_MODULE_ENABLED |
|
|
|
|
|
|
|
#undef HAL_CAN_MODULE_ENABLED |
|
|
|
#undef HAL_CAN_LEGACY_MODULE_ENABLED |
|
|
|
#undef HAL_CEC_MODULE_ENABLED |
|
|
|
#undef HAL_DAC_MODULE_ENABLED |
|
|
|
#undef HAL_ETH_MODULE_ENABLED |
|
|
|
#undef HAL_HCD_MODULE_ENABLED // USB Host
|
|
|
|
#undef HAL_I2S_MODULE_ENABLED |
|
|
|
#undef HAL_IRDA_MODULE_ENABLED |
|
|
|
#undef HAL_NAND_MODULE_ENABLED |
|
|
|
#undef HAL_NOR_MODULE_ENABLED |
|
|
|
#undef HAL_PCCARD_MODULE_ENABLED |
|
|
|
#undef HAL_PWR_MODULE_ENABLED |
|
|
|
#undef HAL_RTC_MODULE_ENABLED |
|
|
|
#undef HAL_SMARTCARD_MODULE_ENABLED |
|
|
|
#undef HAL_WWDG_MODULE_ENABLED |
|
|
|
#undef HAL_MMC_MODULE_ENABLED |
|
|
|
|
|
|
|
#define HAL_PWR_MODULE_ONLY |
|
|
|
|
|
|
|
/* ########################## Oscillator Values adaptation ####################*/ |
|
|
|
/**
|
|
|
|