FreeCalypso > hg > freecalypso-citrine
comparison services/ffs/intctl.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /* | |
2 * The int_disable() and int_enable() calls in TI's FFS code are nothing | |
3 * more than TCT_Control_Interrupts() aka NU_Control_Interrupts(). | |
4 * TI's original code used assembly (proprietary toolchain asm syntax and | |
5 * ABI semantics) to make the needed Thumb->ARM calls; we don't need such | |
6 * idiocy in FreeCalypso, so we have turned int_disable() and int_enable() | |
7 * into simple inline functions. | |
8 */ | |
9 | |
10 #include "ffs.h" | |
11 #include "../../nucleus/nucleus.h" | |
12 | |
13 static inline uint32 int_disable(void) | |
14 { | |
15 return NU_Control_Interrupts(NU_DISABLE_INTERRUPTS); | |
16 } | |
17 | |
18 static inline void int_enable(uint32 tmp) | |
19 { | |
20 NU_Control_Interrupts(tmp); | |
21 } |