The unified diff between revisions [cc8258a6..] and [9142f333..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'interrupt.h'
# # old_revision [cc8258a6c3643514892e84cf24fed008bc6f9660] # new_revision [9142f3330490a5aa00c1686475633b620c2ef5e7] # # patch "interrupt.h" # from [faeb61e4d25cc1baced72430fd4ff30c169ea721] # to [56b191b60c258a1d20ddf786c75868f6269709f1] # ============================================================ --- interrupt.h faeb61e4d25cc1baced72430fd4ff30c169ea721 +++ interrupt.h 56b191b60c258a1d20ddf786c75868f6269709f1 @@ -1,6 +1,8 @@ #ifndef __INTERRUPT_H #define __INTERRUPT_H +#include "swi.h" + #define VICVectAddr (*(volatile unsigned int *)0xFFFFF030) #define I_WDT 0 @@ -32,7 +34,9 @@ #define I_PRIORITY_I2C0 0 #define I_PRIORITY_UART0 1 -#define I_PRIORITY_TIMER0 2 +#define I_PRIORITY_TIMER3 2 +#define I_PRIORITY_TIMER0 3 +#define I_PRIORITY_SPI1 4 #define interrupt_clear() do { VICVectAddr = 0xff; } while (0) @@ -43,4 +47,7 @@ void interrupt_register_code(unsigned in #define interrupt_register(x, fn) \ interrupt_register_code(I_##x, I_PRIORITY_##x, fn) +#define interrupt_block() swi_call(SWI_INTERRUPT_BLOCK) +#define interrupt_unblock() swi_call(SWI_INTERRUPT_UNBLOCK) + #endif /* __INTERRUPT_H */