Skip to content

Commit e663686

Browse files
committed
Be able to redefine VDD_VALUE in the default HAL configuration
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent a08cac0 commit e663686

12 files changed

+27
-3
lines changed

system/STM32F0xx/stm32f0xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ in voltage and temperature. */
165165
/**
166166
* @brief This is the HAL system configuration section
167167
*/
168+
#if !defined(VDD_VALUE)
168169
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
170+
#endif
169171
#if !defined (TICK_INT_PRIORITY)
170172
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
171173
#endif

system/STM32F1xx/stm32f1xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ extern "C" {
142142
/**
143143
* @brief This is the HAL system configuration section
144144
*/
145+
#if !defined(VDD_VALUE)
145146
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
147+
#endif
146148
#if !defined (TICK_INT_PRIORITY)
147149
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
148150
#endif

system/STM32F2xx/stm32f2xx_hal_conf_default.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ extern "C" {
7979
#define HAL_SD_MODULE_ENABLED
8080
#define HAL_SPI_MODULE_ENABLED
8181
#define HAL_TIM_MODULE_ENABLED
82-
#define HAL_UART_MODULE_ENABLED
83-
#define HAL_USART_MODULE_ENABLED
82+
#define HAL_UART_MODULE_ENABLED
83+
#define HAL_USART_MODULE_ENABLED
8484
#define HAL_IRDA_MODULE_ENABLED
8585
#define HAL_SMARTCARD_MODULE_ENABLED
8686
#define HAL_WWDG_MODULE_ENABLED
8787
#define HAL_CORTEX_MODULE_ENABLED
88-
#define HAL_PCD_MODULE_ENABLED
88+
#define HAL_PCD_MODULE_ENABLED
8989
#define HAL_HCD_MODULE_ENABLED
9090
#define HAL_MMC_MODULE_ENABLED
9191
#endif
@@ -148,7 +148,9 @@ in voltage and temperature.*/
148148
/**
149149
* @brief This is the HAL system configuration section
150150
*/
151+
#if !defined (VDD_VALUE)
151152
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
153+
#endif
152154
#if !defined (TICK_INT_PRIORITY)
153155
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
154156
#endif

system/STM32F3xx/stm32f3xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ in voltage and temperature. */
165165
/**
166166
* @brief This is the HAL system configuration section
167167
*/
168+
#if !defined (VDD_VALUE)
168169
#define VDD_VALUE (3300U) /*!< Value of VDD in mv */
170+
#endif
169171
#if !defined (TICK_INT_PRIORITY)
170172
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
171173
#endif

system/STM32F4xx/stm32f4xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ in voltage and temperature. */
146146
/**
147147
* @brief This is the HAL system configuration section
148148
*/
149+
#if !defined (VDD_VALUE)
149150
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
151+
#endif
150152
#if !defined (TICK_INT_PRIORITY)
151153
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
152154
#endif

system/STM32F7xx/stm32f7xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ in voltage and temperature. */
146146
/**
147147
* @brief This is the HAL system configuration section
148148
*/
149+
#if !defined (VDD_VALUE)
149150
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
151+
#endif
150152
#if !defined (TICK_INT_PRIORITY)
151153
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
152154
#endif

system/STM32G0xx/stm32g0xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ in voltage and temperature.*/
148148
/**
149149
* @brief This is the HAL system configuration section
150150
*/
151+
#if !defined (VDD_VALUE)
151152
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
153+
#endif
152154
#if !defined (TICK_INT_PRIORITY)
153155
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
154156
#endif

system/STM32H7xx/stm32h7xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ in voltage and temperature.*/
159159
/**
160160
* @brief This is the HAL system configuration section
161161
*/
162+
#if !defined (VDD_VALUE)
162163
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
164+
#endif
163165
#if !defined (TICK_INT_PRIORITY)
164166
#define TICK_INT_PRIORITY ((uint32_t)0x00) /*!< tick interrupt priority */
165167
#endif

system/STM32L0xx/stm32l0xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ in voltage and temperature.*/
139139
/**
140140
* @brief This is the HAL system configuration section
141141
*/
142+
#if !defined (VDD_VALUE)
142143
#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */
144+
#endif
143145
#if !defined (TICK_INT_PRIORITY)
144146
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
145147
#endif

system/STM32L1xx/stm32l1xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ in voltage and temperature.*/
129129
/**
130130
* @brief This is the HAL system configuration section
131131
*/
132+
#if !defined (VDD_VALUE)
132133
#define VDD_VALUE (3300U) /*!< Value of VDD in mv */
134+
#endif
133135
#if !defined (TICK_INT_PRIORITY)
134136
#define TICK_INT_PRIORITY (0x0000U) /*!< tick interrupt priority */
135137
#endif

system/STM32L4xx/stm32l4xx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ in voltage and temperature.*/
177177
/**
178178
* @brief This is the HAL system configuration section
179179
*/
180+
#if !defined (VDD_VALUE)
180181
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
182+
#endif
181183
#if !defined (TICK_INT_PRIORITY)
182184
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
183185
#endif

system/STM32WBxx/stm32wbxx_hal_conf_default.h

+2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ in voltage and temperature.*/
178178
/**
179179
* @brief This is the HAL system configuration section
180180
*/
181+
#if !defined (VDD_VALUE)
181182
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
183+
#endif
182184
#if !defined (TICK_INT_PRIORITY)
183185
#define TICK_INT_PRIORITY 0x00U /*!< tick interrupt priority */
184186
#endif

0 commit comments

Comments
 (0)