Tests definitions of the HAL Critical module. More...
Functions | |
template<int N> | |
void | test_critical_section () |
Template for HAL critical section tests. More... | |
Tests definitions of the HAL Critical module.
void test_critical_section | ( | ) |
Template for HAL critical section tests.
Test critical section Given a critical section HAL mechanism When before critical section Then interrupts are enabled When inside critical section Then interrupts are disabled When after critical section Then interrupts are enabled again
Test critical section - nested lock Given a critical section HAL mechanism When before critical section Then interrupts are enabled When inside nested critical section Then interrupts are disabled When after nested critical section Then interrupts are enabled again