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

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

void c_irq_handler(void);

#endif