summaryrefslogtreecommitdiffstats
path: root/mig_test/software/schedule.h
diff options
context:
space:
mode:
Diffstat (limited to 'mig_test/software/schedule.h')
-rw-r--r--mig_test/software/schedule.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/mig_test/software/schedule.h b/mig_test/software/schedule.h
new file mode 100644
index 0000000..cd9729d
--- /dev/null
+++ b/mig_test/software/schedule.h
@@ -0,0 +1,25 @@
+/*
+ * $HeadURL: https://svn.fzd.de/repo/concast/FWF_Projects/FWKE/hw_sp605/bsp_zpuahb/software/schedule.h $
+ * $Date$
+ * $Author$
+ * $Revision$
+ */
+
+
+#ifndef SCHEDULE_H
+#define SCHEDULE_H
+
+#define t_res uint32_t // resolution for time
+
+#define SECONDS(x) ((t_res)(CLOCKS_PER_SECOND * x + 0.5))
+
+
+typedef void (*funcp)(void);
+
+void scheduler_task_check(void);
+uint8_t scheduler_task_add( funcp func, t_res delay );
+uint8_t scheduler_task_remove( funcp func );
+void scheduler_init(void);
+uint32_t scheduler_tasklist( void);
+
+#endif // SCHEDULE_H
OpenPOWER on IntegriCloud