mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: cleanup SDMMC enable defines
ensure both are set
This commit is contained in:
parent
f8e4d7facd
commit
61ecf0c443
|
@ -52,3 +52,11 @@
|
||||||
#else
|
#else
|
||||||
#error "Unsupported MCU"
|
#error "Unsupported MCU"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef STM32_SDC_USE_SDMMC1
|
||||||
|
#define STM32_SDC_USE_SDMMC1 FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef STM32_SDC_USE_SDMMC2
|
||||||
|
#define STM32_SDC_USE_SDMMC2 FALSE
|
||||||
|
#endif
|
||||||
|
|
|
@ -475,7 +475,3 @@
|
||||||
|
|
||||||
// limit ISR count per byte
|
// limit ISR count per byte
|
||||||
#define STM32_I2C_ISR_LIMIT 6
|
#define STM32_I2C_ISR_LIMIT 6
|
||||||
|
|
||||||
#ifndef STM32_SDC_USE_SDMMC2
|
|
||||||
#define STM32_SDC_USE_SDMMC2 FALSE
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -238,9 +238,6 @@
|
||||||
/*
|
/*
|
||||||
* SDC driver system settings.
|
* SDC driver system settings.
|
||||||
*/
|
*/
|
||||||
#ifndef STM32_SDC_USE_SDMMC1
|
|
||||||
#define STM32_SDC_USE_SDMMC1 FALSE
|
|
||||||
#endif
|
|
||||||
#define STM32_SDC_SDMMC_UNALIGNED_SUPPORT TRUE
|
#define STM32_SDC_SDMMC_UNALIGNED_SUPPORT TRUE
|
||||||
#define STM32_SDC_SDMMC_WRITE_TIMEOUT 1000
|
#define STM32_SDC_SDMMC_WRITE_TIMEOUT 1000
|
||||||
#define STM32_SDC_SDMMC_READ_TIMEOUT 1000
|
#define STM32_SDC_SDMMC_READ_TIMEOUT 1000
|
||||||
|
|
Loading…
Reference in New Issue