forked from Elron_dev/elbear_arduino_bsp
Merged with dev_beta
This commit is contained in:
1 parent
186e182c1d
commit
221a587857
9 files changed
+184
-38
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#include "mik32_hal_irq.h"
|
||||
|
||||
// isr functions
|
||||
extern void serial_handler_wrapper(void);
|
||||
extern void serial_handler_wrapper(uint8_t uartNumInt);
|
||||
extern void gpio_interrupts_handler(void);
|
||||
extern void tone_interrupt_handler(void);
|
||||
void __attribute__((weak)) wire_handler_wrapper(void)
|
||||
@@ -16,9 +16,13 @@ void trap_handler(void)
|
||||
if (EPIC_CHECK_TIMER16_1())
|
||||
tone_interrupt_handler();
|
||||
|
||||
// uart interrupt
|
||||
// uart0 interrupt
|
||||
if (EPIC_CHECK_UART_0())
|
||||
serial_handler_wrapper();
|
||||
serial_handler_wrapper(0);
|
||||
|
||||
// uart1 interrupt
|
||||
if (EPIC_CHECK_UART_1())
|
||||
serial_handler_wrapper(1);
|
||||
|
||||
// gpio interrupt
|
||||
if (EPIC_CHECK_GPIO_IRQ())
|
||||
|
||||
Reference in new issue
Block a user