HAL_ChibiOS: cleanup SDMMC enable defines

ensure both are set
This commit is contained in:
Andrew Tridgell 2021-12-28 08:55:03 +11:00 committed by Peter Barker
parent f8e4d7facd
commit 61ecf0c443
3 changed files with 8 additions and 7 deletions

View File

@ -52,3 +52,11 @@
#else
#error "Unsupported MCU"
#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

View File

@ -475,7 +475,3 @@
// limit ISR count per byte
#define STM32_I2C_ISR_LIMIT 6
#ifndef STM32_SDC_USE_SDMMC2
#define STM32_SDC_USE_SDMMC2 FALSE
#endif

View File

@ -238,9 +238,6 @@
/*
* 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_WRITE_TIMEOUT 1000
#define STM32_SDC_SDMMC_READ_TIMEOUT 1000