Исправлены комментарии к функции ISR()

This commit is contained in:
klassents 2025-04-11 04:42:24 +03:00
parent ec05003817
commit 2870df7756

View File

@ -24,6 +24,8 @@ void __attribute__((weak)) ISR(void)
A dummy function for the case when additional interrupts are not used in the project.
In the project, you need to create a function of the form:
extern "C" void ISR()
{
if (EPIC_CHECK_TIMER16_1())
{
// timer16 is taken as an example
if (TIM16_GET_ARRM_INT_STATUS(htimer16_1_))
@ -33,6 +35,7 @@ void __attribute__((weak)) ISR(void)
// reset timer interrupt flags
TIM16_CLEAR_INT_MASK(htimer16_1_, 0xFFFFFFFF);
}
}
libraries required to use this example:
#include "mik32_hal_timer16.h"
#include "mik32_hal_irq.h"