Skip to content

Commit

Permalink
arch: irq: define more arch_irq_ routines
Browse files Browse the repository at this point in the history
define additional routines that can be shared by other architectures.
Right now this is only for ARM and will be moved up in the future.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Dec 13, 2023
1 parent c8de8f8 commit c568b7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/zephyr/arch/arm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ void platform_irq_priority_set(unsigned int irq, unsigned int prio, unsigned int
unsigned int platform_irq_get_active(void);
void platform_irq_eoi(unsigned int irq);

#define arch_irq_init() platform_irq_init()
#define arch_irq_enable(irq) platform_irq_enable(irq)
#define arch_irq_disable(irq) platform_irq_disable(irq)
#define arch_irq_is_enabled(irq) platform_irq_is_enabled(irq)

#define arch_irq_eoi(irq) platform_arch_eoi(irq)
#define arch_irq_priority_set(irq, prio, flags) \
platform_irq_priority_set(irq, prio, flags)

Expand Down

0 comments on commit c568b7c

Please sign in to comment.