stm32/sdcard: Only define IRQ handler if using SDMMC1 peripheral.
So that the IRQ can be used by other peripheral drivers if needed.
This commit is contained in:
parent
9e7d2c7abb
commit
467a5926bc
@ -227,11 +227,13 @@ uint64_t sdcard_get_capacity_in_bytes(void) {
|
|||||||
return (uint64_t)cardinfo.LogBlockNbr * (uint64_t)cardinfo.LogBlockSize;
|
return (uint64_t)cardinfo.LogBlockNbr * (uint64_t)cardinfo.LogBlockSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(MICROPY_HW_SDMMC2_CK)
|
||||||
void SDIO_IRQHandler(void) {
|
void SDIO_IRQHandler(void) {
|
||||||
IRQ_ENTER(SDIO_IRQn);
|
IRQ_ENTER(SDIO_IRQn);
|
||||||
HAL_SD_IRQHandler(&sd_handle);
|
HAL_SD_IRQHandler(&sd_handle);
|
||||||
IRQ_EXIT(SDIO_IRQn);
|
IRQ_EXIT(SDIO_IRQn);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MCU_SERIES_F7)
|
#if defined(MCU_SERIES_F7)
|
||||||
void SDMMC2_IRQHandler(void) {
|
void SDMMC2_IRQHandler(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user