aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/irq.h
blob: 3b8f085cd34c7cdc4f3442821466c0373e567d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CPU_IRQ_H
#define CPU_IRQ_H

static inline void enableirq(void)
{
	asm volatile("cpsie i");
}
static inline void disableirq(void)
{
	asm volatile("cpsid i");
}
static inline void enablefiq(void)
{
	asm volatile("cpsie f");
}
static inline void disablefiq(void)
{
	asm volatile("cpsid f");
}

void c_irq_handler(void);

#endif