Files
quadrotor/swi.h
Gavan Fantom 9f79b3d82e * Make total stack size available as a symbol
* Implement SWI handler to enable/disable interrupts
* Implement event system to deal with kicking non-interrupt code
2011-06-03 21:22:01 +00:00

11 lines
198 B
C

#ifndef __SWI_H
#define __SWI_H
#define SWI_INTERRUPT_BLOCK 0
#define SWI_INTERRUPT_UNBLOCK 1
#define swi_call(x) swi_call_(x)
#define swi_call_(x) __asm(" swi " #x "\n")
#endif /* __SWI_H */