The unified diff between revisions [cc8258a6..] and [d0420ebd..] 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 [d0420ebd87c820e33a32b29727989516e15980a8]
#
# patch "interrupt.h"
#  from [faeb61e4d25cc1baced72430fd4ff30c169ea721]
#    to [04c04661f9d61779f82793ce9bc45c761f1ce63b]
#
============================================================
--- interrupt.h	faeb61e4d25cc1baced72430fd4ff30c169ea721
+++ interrupt.h	04c04661f9d61779f82793ce9bc45c761f1ce63b
@@ -1,6 +1,8 @@
 #ifndef __INTERRUPT_H
 #define __INTERRUPT_H
 
+#include "swi.h"
+
 #define VICVectAddr (*(volatile unsigned int *)0xFFFFF030)
 
 #define I_WDT		0
@@ -33,6 +35,7 @@
 #define I_PRIORITY_I2C0		0
 #define I_PRIORITY_UART0	1
 #define I_PRIORITY_TIMER0	2
+#define I_PRIORITY_TIMER1	3
 
 #define interrupt_clear() do { VICVectAddr = 0xff; } while (0)
 
@@ -43,4 +46,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 */