Исправлены комментарии к функции ISR()
This commit is contained in:
parent
ec05003817
commit
2870df7756
@ -24,6 +24,8 @@ void __attribute__((weak)) ISR(void)
|
|||||||
A dummy function for the case when additional interrupts are not used in the project.
|
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:
|
In the project, you need to create a function of the form:
|
||||||
extern "C" void ISR()
|
extern "C" void ISR()
|
||||||
|
{
|
||||||
|
if (EPIC_CHECK_TIMER16_1())
|
||||||
{
|
{
|
||||||
// timer16 is taken as an example
|
// timer16 is taken as an example
|
||||||
if (TIM16_GET_ARRM_INT_STATUS(htimer16_1_))
|
if (TIM16_GET_ARRM_INT_STATUS(htimer16_1_))
|
||||||
@ -33,6 +35,7 @@ void __attribute__((weak)) ISR(void)
|
|||||||
// reset timer interrupt flags
|
// reset timer interrupt flags
|
||||||
TIM16_CLEAR_INT_MASK(htimer16_1_, 0xFFFFFFFF);
|
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"
|
||||||
#include "mik32_hal_irq.h"
|
#include "mik32_hal_irq.h"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user