51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
|
||
#include "stm32f4xx_it.h"
|
||
#include "sdio_sd.h"
|
||
#include "stdbool.h"
|
||
#include "tusb.h"
|
||
|
||
void NMI_Handler(void) {}
|
||
|
||
void MemManage_Handler(void) {
|
||
/* Go to infinite loop when Memory Manage exception occurs */
|
||
while (1) {
|
||
}
|
||
}
|
||
|
||
void BusFault_Handler(void) {
|
||
/* Go to infinite loop when Bus Fault exception occurs */
|
||
while (1) {
|
||
}
|
||
}
|
||
|
||
void UsageFault_Handler(void) {
|
||
/* Go to infinite loop when Usage Fault exception occurs */
|
||
while (1) {
|
||
}
|
||
}
|
||
|
||
void SVC_Handler(void) {}
|
||
|
||
void DebugMon_Handler(void) {}
|
||
|
||
extern void LTDC_ISR_Handler(void);
|
||
|
||
// 函数:LTDC中断服务函数
|
||
void LTDC_IRQHandler(void) { LTDC_ISR_Handler(); }
|
||
|
||
// 函数:SD卡全局中断
|
||
void SDIO_IRQHandler(void) {
|
||
/* Process All SDIO Interrupt Sources */
|
||
SD_ProcessIRQSrc();
|
||
}
|
||
|
||
// 函数:SD卡DMA中断
|
||
void SD_SDIO_DMA_IRQHANDLER(void) {
|
||
/* Process DMA2 Stream3 or DMA2 Stream6 Interrupt Sources */
|
||
SD_ProcessDMAIRQ();
|
||
}
|
||
|
||
/************************USB中断******************************************/
|
||
void OTG_FS_IRQHandler(void) { tusb_int_handler(0, true); }
|
||
void OTG_HS_IRQHandler(void) { tusb_int_handler(1, true); }
|