adding a bunch of code (vesa, keyb, mouse, etc) to the menu
[cdmenu] / menu / src / timer.h
diff --git a/menu/src/timer.h b/menu/src/timer.h
new file mode 100644 (file)
index 0000000..395381c
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef TIMER_H_
+#define TIMER_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* expects the required timer resolution in hertz
+ * if res_hz is 0, the current resolution is retained
+ */
+void init_timer(int res_hz);
+
+void reset_timer(void);
+unsigned long get_msec(void);
+
+void sleep_msec(unsigned long msec);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* TIMER_H_ */