#ifndef hal_leon_inc_timer_ctx_h #define hal_leon_inc_timer_ctx_h /* Cesar project {{{ * * Copyright (C) 2008 Spidcom * * <<>> * * }}} */ /** * \file hal/leon/inc/timer_ctx.h * \brief Leon Timer context. * \ingroup hal_leon * */ #include #include #include enum leon_timer_status_t { LEON_TIMER_STATUS_STOP, LEON_TIMER_STATUS_RUNNING, }; typedef enum leon_timer_status_t leon_timer_status_t; struct leon_timer_t { /** Inidicates the Leon timer status. */ leon_timer_status_t status; /** Function call back to call. */ leon_timer_cb_t cb; /** Callback user data. */ void *user_data; /** interrupt handle for the ecos. */ cyg_interrupt it_timer; cyg_handle_t it_handle; cyg_vector_t it_vector; }; #endif /* hal_leon_inc_timer_ctx_h */