Loading...
Searching...
No Matches
irq_arch.h File Reference

Implementation of the kernels irq interface. More...

Detailed Description

Implementation of the kernels irq interface.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file irq_arch.h.

#include <stdbool.h>
#include <stdint.h>
#include "cpu_conf.h"
#include "kernel_defines.h"
#include "debug_irq_disable.h"
+ Include dependency graph for irq_arch.h:

Go to the source code of this file.

static void _irq_debug_start_count (void)
 Start SysTick timer to measure time spent with IRQ disabled.
 
static uint32_t _irq_debug_stop_count (void)
 Stop SysTick timer, return time spent with IRQ disabled.
 
static unsigned int irq_disable (void)
 Disable all maskable interrupts.
 
static unsigned int irq_enable (void)
 Enable all maskable interrupts.
 
static void irq_restore (unsigned int state)
 Restore the state of the IRQ flags.
 
static bool irq_is_enabled (void)
 See if IRQs are currently enabled.
 
static bool irq_is_in (void)
 See if the current context is inside an ISR.
 

Function Documentation

◆ _irq_debug_start_count()

static void _irq_debug_start_count ( void  )
inlinestatic

Start SysTick timer to measure time spent with IRQ disabled.

Definition at line 35 of file irq_arch.h.

◆ _irq_debug_stop_count()

static uint32_t _irq_debug_stop_count ( void  )
inlinestatic

Stop SysTick timer, return time spent with IRQ disabled.

Definition at line 45 of file irq_arch.h.

◆ irq_disable()

static unsigned int irq_disable ( void  )
inlinestatic

Disable all maskable interrupts.

Definition at line 56 of file irq_arch.h.

◆ irq_enable()

static unsigned int irq_enable ( void  )
inlinestatic

Enable all maskable interrupts.

Definition at line 72 of file irq_arch.h.

◆ irq_is_enabled()

static bool irq_is_enabled ( void  )
inlinestatic

See if IRQs are currently enabled.

Definition at line 111 of file irq_arch.h.

◆ irq_is_in()

static bool irq_is_in ( void  )
inlinestatic

See if the current context is inside an ISR.

Definition at line 123 of file irq_arch.h.

◆ irq_restore()

static void irq_restore ( unsigned int  state)
inlinestatic

Restore the state of the IRQ flags.

Definition at line 85 of file irq_arch.h.