From 3d58a62727346b7ac1a6cb36fed1a06ed72228dd Mon Sep 17 00:00:00 2001 From: save Date: Mon, 7 Apr 2008 14:17:42 +0000 Subject: Moved the complete svn base into the cesar directory. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1769 017c9cb6-072f-447c-8318-d5b54f68fe89 --- cesar/hal/timer/inc/context.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 cesar/hal/timer/inc/context.h (limited to 'cesar/hal/timer/inc/context.h') diff --git a/cesar/hal/timer/inc/context.h b/cesar/hal/timer/inc/context.h new file mode 100644 index 0000000000..88eaf766c1 --- /dev/null +++ b/cesar/hal/timer/inc/context.h @@ -0,0 +1,39 @@ +#ifndef hal_timer_inc_context_h +#define hal_timer_inc_context_h +/* Cesar project {{{ + * + * Copyright (C) 2008 Spidcom + * + * <<>> + * + * }}} */ +/** + * \file hal/timer/inc/context.h + * \brief API timer context. + * \ingroup hal/timer + * + */ + +#include + +#include "lib/heap.h" +#include "hal/leon/timer.h" +#include "hal/phy/phy.h" + +struct hal_timer_t +{ + /** Timer status. */ + bool status; + /** Timer context. */ + leon_timer_t *leon_timer; + /** Heap to store order instances. */ + heap_t heap; + /** Mutex for the heap. */ + cyg_mutex_t heap_mutex; + /** phy context. */ + phy_t *phy; + /** Current instance beeing process. */ + hal_timer_instance_t *current_instance; +}; + +#endif /* hal_timer_inc_context_h */ -- cgit v1.2.3