| 
    Zephyr Project API
    3.2.0
    
   A Scalable Open Source RTOS 
   | 
 
Macros | |
| #define | DURATION 5 | 
| #define | HANDLER_TOKEN 0xDEADBEEF | 
| #define | TIMER_DELAY_US (128 * 1000000 / CONFIG_SYS_CLOCK_TICKS_PER_SEC) | 
Functions | |
| static void | timer_handler (struct k_timer *timer) | 
| ZTEST (interrupt_feature, test_prevent_interruption) | |
| Test interrupt prevention.  More... | |
| ZTEST_SUITE (interrupt_feature, NULL, NULL, NULL, NULL, NULL) | |
Variables | |
| static struct k_timer | irqlock_timer | 
| volatile uint32_t | handler_result | 
| #define DURATION 5 | 
| #define HANDLER_TOKEN 0xDEADBEEF | 
| #define TIMER_DELAY_US (128 * 1000000 / CONFIG_SYS_CLOCK_TICKS_PER_SEC) | 
      
  | 
  static | 
| ZTEST | ( | interrupt_feature | , | 
| test_prevent_interruption | |||
| ) | 
Test interrupt prevention.
This routine tests if the kernel is capable of preventing interruption, by locking interrupts and busy-waiting to see if the system timer interrupt is serviced while interrupts are locked; in addition, this test also verifies that the system timer interrupt is serviced after interrupts are unlocked.
| ZTEST_SUITE | ( | interrupt_feature | , | 
| NULL | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | |||
| ) | 
| volatile uint32_t handler_result | 
      
  | 
  static |