mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
26 lines
518 B
C
26 lines
518 B
C
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
void disable_async_interrupts(void) {
|
|
|
|
}
|
|
|
|
void enable_async_interrupts(void) {
|
|
|
|
}
|
|
|
|
void Default_Handler(void) {
|
|
while (true) {}
|
|
}
|
|
|
|
__attribute__((weak)) void handle_irq(void) {
|
|
unsigned int irq = *((volatile uint32_t*) 0x3F00B204);
|
|
switch (irq) {
|
|
// case (SYSTEM_TIMER_IRQ_1):
|
|
// handle_timer_irq();
|
|
// break;
|
|
default:
|
|
// printf("Unknown pending irq: %x\r\n", irq);
|
|
Default_Handler();
|
|
}
|
|
} |