no-OS
timer_extra.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef TIMER_EXTRA_H
41 #define TIMER_EXTRA_H
42 
43 /******************************************************************************/
44 /************************** Types Declarations *******************************/
45 /******************************************************************************/
46 
53  uint64_t old_time;
55  bool started;
56 };
57 
58 #endif /* TIMER_EXTRA_H */
IS_ERR_VALUE
#define IS_ERR_VALUE(x)
Definition: error.h:65
xil_timer_desc::config
void * config
Definition: timer_extra.h:78
timer_init
int32_t timer_init(struct timer_desc **desc, struct timer_init_param *param)
Initialize a instance of a timer.
Definition: timer.c:111
xil_timer_desc
Xilinx specific timer descriptor.
Definition: timer_extra.h:74
timer_desc::load_value
uint32_t load_value
Definition: timer.h:63
xil_timer_desc::instance
void * instance
Definition: timer_extra.h:76
timer_init_param
Structure holding the parameters for timer initialization.
Definition: timer.h:72
timer_init_param::freq_hz
uint32_t freq_hz
Definition: timer.h:76
timer_desc::id
uint16_t id
Definition: timer.h:59
timer_counter_get
int32_t timer_counter_get(struct timer_desc *desc, uint32_t *counter)
Get the value the timer is at.
Definition: timer.c:254
aducm_timer_desc
It stores instance values specific for the ADuCM302x implementation.
Definition: timer_extra.h:51
FREQ_1KHZ
#define FREQ_1KHZ
Definition: timer.c:61
timer_count_clk_set
int32_t timer_count_clk_set(struct timer_desc *desc, uint32_t freq_hz)
Set the frequency the timer counts with.
Definition: timer.c:344
timer_desc::extra
void * extra
Definition: timer.h:65
timer_desc::freq_hz
uint32_t freq_hz
Definition: timer.h:61
timer.h
Timer control module header.
TIMER_PL
@ TIMER_PL
Definition: timer_extra.h:65
error.h
Error codes definition.
aducm_timer_desc::old_time
uint64_t old_time
Definition: timer_extra.h:53
TIMER_PS
@ TIMER_PS
Definition: timer_extra.h:67
aducm_timer_desc::started
bool started
Definition: timer_extra.h:55
xil_timer_init_param::type
enum xil_timer_type type
Definition: timer_extra.h:93
timer_start
int32_t timer_start(struct timer_desc *desc)
Enable counting in the timer instance.
Definition: timer.c:200
xil_timer_desc::type
enum xil_timer_type type
Definition: timer_extra.h:82
HFOSC_LOAD
#define HFOSC_LOAD
Definition: timer.c:59
xil_timer_init_param
Xilinx specific timer initialization structure.
Definition: timer_extra.h:89
timer_extra.h
timer_stop
int32_t timer_stop(struct timer_desc *desc)
Stop counting the timer instance.
Definition: timer.c:226
timer_counter_set
int32_t timer_counter_set(struct timer_desc *desc, uint32_t new_val)
Set a new value for the timer.
Definition: timer.c:307
timer_remove
int32_t timer_remove(struct timer_desc *desc)
Remove a instance of a timer.
Definition: timer.c:163
NULL
#define NULL
Definition: wrapper.h:64
SUCCESS
#define SUCCESS
Definition: error.h:52
timer_init_param::id
uint16_t id
Definition: timer.h:74
timer_init_param::extra
void * extra
Definition: timer.h:80
xil_timer_init_param::active_tmr
uint8_t active_tmr
Definition: timer_extra.h:91
FREQ_1MHZ
#define FREQ_1MHZ
Definition: timer.c:63
MHZ26_TO_US
#define MHZ26_TO_US(count)
Definition: timer.c:65
timer_extra.h
Header file of TIMER driver for ADuCM302x.
timer_init_param::load_value
uint32_t load_value
Definition: timer.h:78
FAILURE
#define FAILURE
Definition: error.h:56
timer_count_clk_get
int32_t timer_count_clk_get(struct timer_desc *desc, uint32_t *freq_hz)
Get the frequency the timer counts with.
Definition: timer.c:327
xil_timer_desc::active_tmr
uint8_t active_tmr
Definition: timer_extra.h:80
timer_desc
Structure holding timer descriptor.
Definition: timer.h:57