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

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

View File

@ -25,13 +25,16 @@ void __attribute__((weak)) ISR(void)
In the project, you need to create a function of the form: In the project, you need to create a function of the form:
extern "C" void ISR() extern "C" void ISR()
{ {
// timer16 is taken as an example if (EPIC_CHECK_TIMER16_1())
if (TIM16_GET_ARRM_INT_STATUS(htimer16_1_))
{ {
// necessary actions // timer16 is taken as an example
if (TIM16_GET_ARRM_INT_STATUS(htimer16_1_))
{
// necessary actions
}
// reset timer interrupt flags
TIM16_CLEAR_INT_MASK(htimer16_1_, 0xFFFFFFFF);
} }
// reset timer interrupt flags
TIM16_CLEAR_INT_MASK(htimer16_1_, 0xFFFFFFFF);
} }
libraries required to use this example: libraries required to use this example:
#include "mik32_hal_timer16.h" #include "mik32_hal_timer16.h"