summaryrefslogtreecommitdiff
path: root/firmware/src/os/blinkcode.h
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-01 19:23:15 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-01 19:23:15 +0000
commit6c0b462a2c43d8be50df627a2856d198ef76bf39 (patch)
tree48f33ad9f89443a121f23006bde53ddf62f1e110 /firmware/src/os/blinkcode.h
parent778802a3a429bcda51cf6d82a897f0e3de6fe644 (diff)
- finish implementation of timers based on PIT
- add [untested] code for timer-based LED blink codes git-svn-id: https://svn.openpcd.org:2342/trunk@242 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src/os/blinkcode.h')
-rw-r--r--firmware/src/os/blinkcode.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/src/os/blinkcode.h b/firmware/src/os/blinkcode.h
new file mode 100644
index 0000000..142c148
--- /dev/null
+++ b/firmware/src/os/blinkcode.h
@@ -0,0 +1,14 @@
+#ifndef _BLINKCODE_H
+#define _BLINKCODE_H
+
+enum blinkcode_num {
+ BLINKCODE_NONE,
+ BLINKCODE_IDLE,
+ BLINKCODE_DFU_MODE,
+ BLINKCODE_DFU_PROBLEM,
+ BLINKCODE_
+};
+
+extern void blinkcode_set(int led, enum blinkcode_num);
+extern void blinkcode_init(void);
+#endif
personal git repositories of Harald Welte. Your mileage may vary