Skip to content

Commit d129f8f

Browse files
committed
STM32H7: sd transceiver is now configurable
1 parent eaa3b0f commit d129f8f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/stm32h7xx_hal_conf.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@
166166
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
167167
#define TICK_INT_PRIORITY (0x0FUL) /*!< tick interrupt priority */
168168
#define USE_RTOS 0
169-
#define USE_SD_TRANSCEIVER 1U /*!< use uSD Transceiver */
169+
170+
#if MBED_CONF_TARGET_SD_TRANSCEIVER_AVAILABLE
171+
#define USE_SD_TRANSCEIVER 1U /*!< use uSD Transceiver */
172+
#endif /* USE_SD_TRANSCEIVER */
173+
170174
#define USE_SPI_CRC 1U /*!< use CRC in SPI */
171175

172176
#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */

targets/targets.json

+4
Original file line numberDiff line numberDiff line change
@@ -2776,6 +2776,10 @@
27762776
"expected_value2": "PWR_SMPS_1V8_SUPPLIES_LDO | PWR_SMPS_2V5_SUPPLIES_LDO | PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO | PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO",
27772777
"expected_value3": "PWR_SMPS_1V8_SUPPLIES_EXT | PWR_SMPS_2V5_SUPPLIES_EXT | PWR_EXTERNAL_SOURCE_SUPPLY",
27782778
"value": "NC"
2779+
},
2780+
"sd_transceiver_available": {
2781+
"help": "Define if SD transceiver is available on the board (0 = No, 1 = Yes).",
2782+
"value": 1
27792783
}
27802784
},
27812785
"components_add": [

0 commit comments

Comments
 (0)