обработчик прерывания для библиотеки IRremote
This commit is contained in:
parent
f68431f34d
commit
ffd72d6bd9
@ -13,6 +13,10 @@ void __attribute__((weak)) servo_interrupt_handler(void)
|
|||||||
{
|
{
|
||||||
// dummy function for case when servo library is not in use
|
// dummy function for case when servo library is not in use
|
||||||
}
|
}
|
||||||
|
void __attribute__((weak)) IRremote_interrupt_handler(void)
|
||||||
|
{
|
||||||
|
// dummy function for case when IRremote library is not in use
|
||||||
|
}
|
||||||
|
|
||||||
void __attribute__((weak)) ISR(void)
|
void __attribute__((weak)) ISR(void)
|
||||||
{
|
{
|
||||||
@ -46,6 +50,10 @@ void __attribute__((noinline, section(".ram_text"), optimize("O3"))) trap_handle
|
|||||||
if (EPIC_CHECK_GPIO_IRQ())
|
if (EPIC_CHECK_GPIO_IRQ())
|
||||||
gpio_interrupt_handler();
|
gpio_interrupt_handler();
|
||||||
|
|
||||||
|
// IRremote timer interrupt
|
||||||
|
if (EPIC_CHECK_TIMER16_0())
|
||||||
|
IRremote_interrupt_handler();
|
||||||
|
|
||||||
// tone timer interrupt
|
// tone timer interrupt
|
||||||
if (EPIC_CHECK_TIMER16_1())
|
if (EPIC_CHECK_TIMER16_1())
|
||||||
tone_interrupt_handler();
|
tone_interrupt_handler();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user