aboutsummaryrefslogtreecommitdiff
path: root/include/cpu/irq.h
blob: 03402ffe43ec791ac4e7b3165e83e62dd334bd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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);
unsigned long c_fiq_handler(void);

#endif