]> oss.titaniummirror.com Git - rgblamp.git/blobdiff - isr.c
Incorporate new tmr and isr code
[rgblamp.git] / isr.c
diff --git a/isr.c b/isr.c
new file mode 100644 (file)
index 0000000..f466c55
--- /dev/null
+++ b/isr.c
@@ -0,0 +1,17 @@
+/*
+ * File:   isr.c
+ *
+ * Interrupt handling routines
+ */
+
+
+#include <htc.h>
+#include "tmr.h"
+
+bit isr_gie; /* Used to store the state of GIE for nested ndi()/nei() */
+unsigned char isr_di; /* Count of nested ndi() */
+
+void interrupt isr()
+{
+  tmr_isr();
+}