Добавлена библиотека IRremote #10

Merged
klassents merged 75 commits from dev into v0.5.0 2025-01-25 06:52:11 +03:00
Showing only changes of commit ffd72d6bd9 - Show all commits

View File

@ -13,6 +13,10 @@ void __attribute__((weak)) servo_interrupt_handler(void)
{
// 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)
{
@ -46,6 +50,10 @@ void __attribute__((noinline, section(".ram_text"), optimize("O3"))) trap_handle
if (EPIC_CHECK_GPIO_IRQ())
gpio_interrupt_handler();
// IRremote timer interrupt
if (EPIC_CHECK_TIMER16_0())
IRremote_interrupt_handler();
// tone timer interrupt
if (EPIC_CHECK_TIMER16_1())
tone_interrupt_handler();