|
@@ -37,40 +37,43 @@ extern "C" {
|
37
|
37
|
/**
|
38
|
38
|
* @brief This is the list of modules to be used in the HAL driver
|
39
|
39
|
*/
|
40
|
|
-//#define HAL_MODULE_ENABLED
|
41
|
|
-//#define HAL_ADC_MODULE_ENABLED
|
42
|
|
-//#define HAL_CAN_MODULE_ENABLED
|
43
|
|
-//#define HAL_CAN_LEGACY_MODULE_ENABLED
|
44
|
|
-//#define HAL_CEC_MODULE_ENABLED
|
45
|
|
-//#define HAL_CORTEX_MODULE_ENABLED
|
46
|
|
-//#define HAL_CRC_MODULE_ENABLED
|
47
|
|
-//#define HAL_DAC_MODULE_ENABLED
|
48
|
|
-//#define HAL_DMA_MODULE_ENABLED
|
49
|
|
-//#define HAL_ETH_MODULE_ENABLED
|
50
|
|
-//#define HAL_EXTI_MODULE_ENABLED
|
51
|
|
-//#define HAL_FLASH_MODULE_ENABLED
|
52
|
|
-//#define HAL_GPIO_MODULE_ENABLED
|
53
|
|
-//#define HAL_HCD_MODULE_ENABLED
|
54
|
|
-//#define HAL_I2C_MODULE_ENABLED
|
55
|
|
-//#define HAL_I2S_MODULE_ENABLED
|
56
|
|
-//#define HAL_IRDA_MODULE_ENABLED
|
57
|
|
-//#define HAL_IWDG_MODULE_ENABLED
|
58
|
|
-//#define HAL_NAND_MODULE_ENABLED
|
59
|
|
-//#define HAL_NOR_MODULE_ENABLED
|
60
|
|
-//#define HAL_PCCARD_MODULE_ENABLED
|
61
|
|
-//#define HAL_PCD_MODULE_ENABLED
|
62
|
|
-//#define HAL_PWR_MODULE_ENABLED
|
63
|
|
-//#define HAL_RCC_MODULE_ENABLED
|
64
|
|
-//#define HAL_RTC_MODULE_ENABLED
|
65
|
|
-//#define HAL_SD_MODULE_ENABLED
|
66
|
|
-//#define HAL_SMARTCARD_MODULE_ENABLED
|
67
|
|
-//#define HAL_SPI_MODULE_ENABLED
|
68
|
|
-//#define HAL_SRAM_MODULE_ENABLED
|
69
|
|
-//#define HAL_TIM_MODULE_ENABLED
|
70
|
|
-//#define HAL_UART_MODULE_ENABLED
|
71
|
|
-//#define HAL_USART_MODULE_ENABLED
|
72
|
|
-//#define HAL_WWDG_MODULE_ENABLED
|
73
|
|
-//#define HAL_MMC_MODULE_ENABLED
|
|
40
|
+#define HAL_MODULE_ENABLED
|
|
41
|
+#define HAL_ADC_MODULE_ENABLED
|
|
42
|
+#define HAL_CRC_MODULE_ENABLED
|
|
43
|
+#define HAL_DMA_MODULE_ENABLED
|
|
44
|
+#define HAL_EXTI_MODULE_ENABLED
|
|
45
|
+#define HAL_FLASH_MODULE_ENABLED
|
|
46
|
+#define HAL_GPIO_MODULE_ENABLED
|
|
47
|
+#define HAL_I2C_MODULE_ENABLED
|
|
48
|
+#define HAL_IWDG_MODULE_ENABLED
|
|
49
|
+#define HAL_RCC_MODULE_ENABLED
|
|
50
|
+#define HAL_SPI_MODULE_ENABLED
|
|
51
|
+#define HAL_SRAM_MODULE_ENABLED
|
|
52
|
+#define HAL_TIM_MODULE_ENABLED
|
|
53
|
+#define HAL_USART_MODULE_ENABLED
|
|
54
|
+#define HAL_CORTEX_MODULE_ENABLED
|
|
55
|
+//#define HAL_UART_MODULE_ENABLED // by default
|
|
56
|
+//#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)
|
|
57
|
+#define HAL_SD_MODULE_ENABLED
|
|
58
|
+
|
|
59
|
+#undef HAL_CAN_MODULE_ENABLED
|
|
60
|
+#undef HAL_CAN_LEGACY_MODULE_ENABLED
|
|
61
|
+#undef HAL_CEC_MODULE_ENABLED
|
|
62
|
+#undef HAL_DAC_MODULE_ENABLED
|
|
63
|
+#undef HAL_ETH_MODULE_ENABLED
|
|
64
|
+#undef HAL_HCD_MODULE_ENABLED // USB Host
|
|
65
|
+#undef HAL_I2S_MODULE_ENABLED
|
|
66
|
+#undef HAL_IRDA_MODULE_ENABLED
|
|
67
|
+#undef HAL_NAND_MODULE_ENABLED
|
|
68
|
+#undef HAL_NOR_MODULE_ENABLED
|
|
69
|
+#undef HAL_PCCARD_MODULE_ENABLED
|
|
70
|
+#undef HAL_PWR_MODULE_ENABLED
|
|
71
|
+#undef HAL_RTC_MODULE_ENABLED
|
|
72
|
+#undef HAL_SMARTCARD_MODULE_ENABLED
|
|
73
|
+#undef HAL_WWDG_MODULE_ENABLED
|
|
74
|
+#undef HAL_MMC_MODULE_ENABLED
|
|
75
|
+
|
|
76
|
+#define HAL_PWR_MODULE_ONLY
|
74
|
77
|
|
75
|
78
|
/* ########################## Oscillator Values adaptation ####################*/
|
76
|
79
|
/**
|