![]() |
Energy Micro IEC60355 Library Example Project 1.0 (internal use only!) GCC-Version
Example project demonstrating POST and BIST library functions
|
The interrupt test checks functionality of NVIC. More...
|
Defines | |
| #define | IgnoreIRQHandler 0 |
| #define | CallIRQHandler 1 |
Functions | |
| void | IEC60335_IRQReplacementHandler (void) |
| call the original vector | |
| void | IEC60335_ClassB_InitInterruptTest (IRQn_Type IRQn, uint8_t Mode, IRQTestData_t *CountSetup) |
| Initialization of a specified interrupt test. | |
| testResult_t | IEC60335_ClassB_InterruptCheck (IRQn_Type IRQn) |
| The interrupt check routine must be called once in known equidistant times. | |
The interrupt test checks functionality of NVIC.
Providing an intermediate vector which is used to check the occurrence of an
interrupt the original vector can be configured, so interrupts can be simulated
| #define CallIRQHandler 1 |
original handler is called
Definition at line 45 of file iec60335_class_b_interrupt_test.h.
Referenced by main().
| #define IgnoreIRQHandler 0 |
original handler is ignored
Definition at line 44 of file iec60335_class_b_interrupt_test.h.
| void IEC60335_ClassB_InitInterruptTest | ( | IRQn_Type | IRQn, |
| uint8_t | Mode, | ||
| IRQTestData_t * | CountSetup | ||
| ) |
Initialization of a specified interrupt test.
| IRQn | number of the interrupt to test if number smaller than "SysTick_IRQn" the function deactivates all tests numbers bigger than "PendSV_IRQn" activates the test calling a second time with the same IRQn will deactivate this test |
| Mode | configure interrupt is calling the original handler |
| CountSetup | counters of interrupt occurrences |
Referenced by main().

| testResult_t IEC60335_ClassB_InterruptCheck | ( | IRQn_Type | IRQn | ) |
The interrupt check routine must be called once in known equidistant times.
| IRQn | number of the interrupt to test |
Referenced by main().

| void IEC60335_IRQReplacementHandler | ( | void | ) |
call the original vector
| vect | IRQ index
|
Interrupt replacement handler to check interrupt occurrences