blob: 807df466bbabf60da12d7f81d9a182b51e0f676a (
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);
void c_fiq_handler(void);
#endif
|