Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
regular_isr.c File Reference
#include <zephyr/ztest.h>
#include <zephyr/interrupt_util.h>
#include <zephyr/irq.h>

Macros

#define TEST_IRQ_LINE_1   27
 
#define TEST_IRQ_LINE_2   28
 
#define TEST_IRQ_PRIO   2
 

Functions

void isr_comm (const void *param)
 
 ZTEST (interrupt_feature, test_isr_regular)
 Test regular interrupt.
 

Variables

volatile uint32_t reg_int_executed [2]
 

Macro Definition Documentation

◆ TEST_IRQ_LINE_1

#define TEST_IRQ_LINE_1   27

◆ TEST_IRQ_LINE_2

#define TEST_IRQ_LINE_2   28

◆ TEST_IRQ_PRIO

#define TEST_IRQ_PRIO   2

Function Documentation

◆ isr_comm()

void isr_comm ( const void *  param)

◆ ZTEST()

ZTEST ( interrupt_feature  ,
test_isr_regular   
)

Test regular interrupt.

Validate regular interrupt works as expected.

  • Register two regular interrupt at build time.
  • Trigger interrupt and check if isr handler has executed or not.
  • Also check irq_enable and irq_disable works.
See also
IRQ_CONNECT(), irq_enable(), irq_disable(), irq_unlock(),

Variable Documentation

◆ reg_int_executed

volatile uint32_t reg_int_executed[2]