Skip to content

Commit 5f34649

Browse files
committed
feat(h7): add a message for the system power supply
if it is not defined. Signed-off-by: Frederic Pillon <[email protected]>
1 parent 417d8bd commit 5f34649

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diff for: libraries/SrcWrapper/src/stm32/hw_config.c

+22
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,28 @@
2121
extern "C" {
2222
#endif
2323

24+
#if defined(STM32H7xx)
25+
#if !defined(USE_PWR_LDO_SUPPLY) && !defined(USE_PWR_DIRECT_SMPS_SUPPLY) &&\
26+
!defined(USE_PWR_EXTERNAL_SOURCE_SUPPLY) && !defined(USE_PWR_SMPS_1V8_SUPPLIES_LDO) &&\
27+
!defined(USE_PWR_SMPS_2V5_SUPPLIES_LDO) && !defined(USE_PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO) &&\
28+
!defined(USE_PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO) && !defined(USE_PWR_SMPS_1V8_SUPPLIES_EXT) &&\
29+
!defined(USE_PWR_SMPS_2V5_SUPPLIES_EXT)
30+
#pragma message "\n\
31+
Configure the system power supply according to the\n\
32+
definition to be used at compilation preprocessing level.\n\
33+
The application shall set one of the following configuration option:\n\
34+
- USE_PWR_LDO_SUPPLY\n\
35+
- USE_PWR_DIRECT_SMPS_SUPPLY\n\
36+
- USE_PWR_EXTERNAL_SOURCE_SUPPLY\n\
37+
- USE_PWR_SMPS_1V8_SUPPLIES_LDO\n\
38+
- USE_PWR_SMPS_2V5_SUPPLIES_LDO\n\
39+
- USE_PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO\n\
40+
- USE_PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO\n\
41+
- USE_PWR_SMPS_1V8_SUPPLIES_EXT\n\
42+
- USE_PWR_SMPS_2V5_SUPPLIES_EXT\n"
43+
#endif
44+
#endif
45+
2446
#if defined(HAL_CRC_MODULE_ENABLED)
2547
CRC_HandleTypeDef hcrc = {.Instance =
2648
#if defined(CRC2_BASE)

0 commit comments

Comments
 (0)