summaryrefslogtreecommitdiff
path: root/cesar/hal/leon/inc/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal/leon/inc/timer.h')
-rw-r--r--cesar/hal/leon/inc/timer.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/cesar/hal/leon/inc/timer.h b/cesar/hal/leon/inc/timer.h
new file mode 100644
index 0000000000..29b8d66132
--- /dev/null
+++ b/cesar/hal/leon/inc/timer.h
@@ -0,0 +1,45 @@
+#ifndef hal_leon_inc_timer_h
+#define hal_leon_inc_timer_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file hal/leon/inc/timer.h
+ * \brief Hardware Abstact Layer for the Leon timer 2.
+ * \ingroup hal_leon
+ *
+ * Iterruptions functions for the Timer 2.
+ */
+
+#include <cyg/kernel/kapi.h>
+#include <cyg/hal/drv_api.h>
+#include <cyg/infra/diag.h>
+
+/**
+ * Interrupt service routine for interrupt timer2.
+ *
+ * \param vector interruption vector.
+ * \param data data...
+ */
+cyg_uint32
+leon_timer_interrupt_isr(
+ cyg_vector_t vector,
+ cyg_addrword_t data);
+
+/**
+ * Deferred service routine for interrupt timer2.
+ *
+ * \param vector interruption
+ * \param count ....
+ * \param data ....
+ */
+void leon_timer_interrupt_dsr(
+ cyg_vector_t vector,
+ cyg_ucount32 count,
+ cyg_addrword_t data);
+
+#endif /* hal_leon_inc_timer_h */