добавлено обработку нулевого i2c
This commit is contained in:
parent
ba668a984e
commit
59e94c9dc8
@ -5,7 +5,7 @@
|
||||
extern void serial_interrupt_handler(uint8_t uartNumInt);
|
||||
extern void gpio_interrupt_handler(void);
|
||||
extern void tone_interrupt_handler(void);
|
||||
void __attribute__((weak)) wire_interrupt_handler(void)
|
||||
void __attribute__((weak)) wire_interrupt_handler(uint8_t num)
|
||||
{
|
||||
// dummy function for case when wire library is not in use
|
||||
}
|
||||
@ -70,9 +70,12 @@ void __attribute__((noinline, section(".ram_text"), optimize("O3"))) trap_handle
|
||||
if (EPIC_CHECK_UART_1())
|
||||
serial_interrupt_handler(1);
|
||||
|
||||
// i2c interrupt
|
||||
// i2c0 interrupt
|
||||
if (EPIC_CHECK_I2C_0())
|
||||
wire_interrupt_handler(0);
|
||||
|
||||
if (EPIC_CHECK_I2C_1())
|
||||
wire_interrupt_handler();
|
||||
wire_interrupt_handler(1);
|
||||
|
||||
// reset all interrupts
|
||||
EPIC_CLEAR_ALL();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user