Go to the documentation of this file.
34 #ifndef XILINX_TIMER_H_
35 #define XILINX_TIMER_H_
41 #include <xparameters.h>
42 #ifdef XPAR_XSCUTIMER_NUM_INSTANCES
43 #include <xscutimer.h>
45 #ifdef XPAR_XTMRCTR_NUM_INSTANCES
int32_t xilinx_timer_stop(struct no_os_timer_desc *desc)
Stop a timer from counting.
Definition: xilinx_timer.c:94
const struct no_os_timer_platform_ops xil_timer_ops
Xilinx platform specific timer platform ops structure.
Definition: xilinx_timer.c:439
int32_t xilinx_timer_count_clk_set(struct no_os_timer_desc *desc, uint32_t freq_hz)
Set the timer clock frequency.
Definition: xilinx_timer.c:243
void * config
Definition: xilinx_timer.h:72
uint32_t device_id
Definition: no_os_spi.h:196
Xilinx specific timer descriptor.
Definition: xilinx_timer.h:68
#define NO_OS_SPI_CPOL
Definition: no_os_spi.h:48
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:150
void * instance
Definition: xilinx_timer.h:70
Header file of SPI Interface.
uint16_t id
Definition: no_os_timer.h:85
Timer control module header.
Definition: no_os_spi.h:100
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
Header file of Delay functions.
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
Timer control module header.
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
int _read(int file, char *ptr, int len)
Definition: maxim_uart_stdio.c:100
int32_t xilinx_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Set the current counter value of the timer.
Definition: xilinx_timer.c:168
const struct no_os_spi_platform_ops xil_spi_pl_ops
Xilinx SPI PS register functions. No extra param needed.
uint32_t ticks_count
Definition: no_os_timer.h:89
uint8_t * tx_buff
Definition: no_os_spi.h:102
uint32_t device_id
Definition: no_os_spi.h:142
uint8_t chip_select
Definition: no_os_spi.h:146
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
uint8_t chip_select
Definition: no_os_spi.h:200
#define no_os_min(x, y)
Definition: no_os_util.h:59
int32_t xilinx_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Get the current counter value of the timer.
Definition: xilinx_timer.c:129
uint32_t freq_hz
Definition: no_os_timer.h:87
uint32_t ticks_count
Definition: no_os_timer.h:65
uint8_t * rx_buff
Definition: no_os_spi.h:104
uint16_t id
Definition: no_os_timer.h:61
int32_t xilinx_timer_init(struct no_os_timer_desc **desc, const struct no_os_timer_init_param *param)
Initialize hardware timer and the handler structure associated with it.
Definition: xilinx_timer.c:298
uint8_t cs_change
Definition: no_os_spi.h:108
enum no_os_spi_bit_order bit_order
Definition: no_os_spi.h:204
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
int _write(int file, char *ptr, int len)
Definition: maxim_uart_stdio.c:117
int32_t xilinx_timer_get_elapsed_time_nsec(struct no_os_timer_desc *desc, uint64_t *elapsed_time)
Get the elapsed time in nsec for the timer.
Definition: xilinx_timer.c:284
uint32_t bytes_number
Definition: no_os_spi.h:106
enum xil_timer_type type
Definition: xilinx_timer.h:87
enum xil_timer_type type
Definition: xilinx_timer.h:76
void * extra
Definition: no_os_spi.h:212
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:83
Xilinx specific timer initialization structure.
Definition: xilinx_timer.h:83
uint32_t freq_hz
Definition: no_os_timer.h:63
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
@ NO_OS_SPI_BIT_ORDER_LSB_FIRST
Definition: no_os_spi.h:78
#define NULL
Definition: wrapper.h:64
void * extra
Definition: no_os_timer.h:69
void * extra
Definition: no_os_timer.h:93
@ TIMER_PL
Definition: xilinx_timer.h:59
uint8_t active_tmr
Definition: xilinx_timer.h:85
int32_t xilinx_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: xilinx_timer.c:62
Structure holding timer descriptor.
Definition: no_os_timer.h:57
int32_t xilinx_timer_remove(struct no_os_timer_desc *desc)
Free the memory allocated by timer_setup().
Definition: xilinx_timer.c:403
Header file of utility functions.
const struct no_os_timer_platform_ops xil_timer_ops
Xilinx platform specific timer platform ops structure.
Definition: xilinx_timer.c:439
#define NO_OS_SPI_CPHA
Definition: no_os_spi.h:47
@ TIMER_PS
Definition: xilinx_timer.h:61
enum no_os_spi_mode mode
Definition: no_os_spi.h:202
xil_timer_type
Xilinx platform architecture sections.
Definition: xilinx_timer.h:57
uint8_t active_tmr
Definition: xilinx_timer.h:74
int32_t xilinx_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Get the timer clock frequency.
Definition: xilinx_timer.c:205
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140