Go to the documentation of this file.
34 #ifndef XILINX_UART_H_
35 #define XILINX_UART_H_
45 #define UART_BUFF_LENGTH 256
#define UART_BUFF_LENGTH
Definition: xilinx_uart.h:45
struct no_os_fifo_element * fifo
Definition: xilinx_uart.h:88
void * extra
Definition: no_os_uart.h:127
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
struct no_os_irq_ctrl_desc * irq_desc
Definition: xilinx_uart.h:86
@ UART_PL
Definition: xilinx_uart.h:57
Header file of IRQ interface.
enum xil_uart_type type
Definition: xilinx_uart.h:69
int32_t no_os_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Register a callback to handle the irq events.
Definition: no_os_irq.c:92
char buff[UART_BUFF_LENGTH]
Definition: xilinx_uart.h:92
Xilinx platform specific UART descriptor.
Definition: xilinx_uart.h:80
uint32_t bytes_received
Definition: xilinx_uart.h:94
enum xil_irq_type type
Definition: xilinx_irq.h:66
uint32_t baud_rate
Definition: no_os_uart.h:144
#define WRITE_SIZE
Definition: xilinx_uart.c:59
@ UART_PS
Definition: xilinx_uart.h:59
unsigned char u8
Definition: wrapper.h:156
uint32_t irq_id
Definition: xilinx_uart.h:71
xil_uart_type
Xilinx platform architecture sections.
Definition: xilinx_uart.h:55
enum xil_uart_type type
Definition: xilinx_uart.h:82
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
uint8_t device_id
Definition: no_os_uart.h:138
Stucture holding the UART descriptor.
Definition: no_os_uart.h:134
uint32_t total_error_count
Definition: xilinx_uart.h:96
int32_t no_os_irq_global_enable(struct no_os_irq_ctrl_desc *desc)
Enable global interrupts.
Definition: no_os_irq.c:129
uint32_t len
Definition: no_os_fifo.h:56
const struct no_os_irq_platform_ops xil_irq_ops
Xilinx platform specific IRQ platform ops structure.
Definition: xilinx_irq.c:373
void * extra
Definition: no_os_uart.h:147
int32_t no_os_fifo_insert(struct no_os_fifo_element **p_fifo, char *buff, uint32_t len)
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
struct no_os_fifo_element * no_os_fifo_remove(struct no_os_fifo_element *p_fifo)
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition: xilinx_uart.h:67
@ IRQ_PS
Definition: xilinx_irq.h:56
struct no_os_irq_ctrl_desc * irq_desc
Definition: xilinx_uart.h:73
uint32_t baud_rate
Definition: no_os_uart.h:118
Structure for Interrupt Request descriptor.
Structure holding the fifo element parameters.
Definition: no_os_fifo.h:50
void * instance
Definition: xilinx_uart.h:98
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
const struct no_os_uart_platform_ops xil_uart_ops
Xilinx platform specific UART platform ops structure.
Definition: xilinx_uart.c:520
#define NULL
Definition: wrapper.h:64
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
const struct no_os_uart_platform_ops xil_uart_ops
Xilinx platform specific UART platform ops structure.
Definition: xilinx_uart.c:520
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
char * data
Definition: no_os_fifo.h:54
uint8_t device_id
Definition: no_os_uart.h:112
uint32_t fifo_read_offset
Definition: xilinx_uart.h:90
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
Header file of UART interface.
uint32_t irq_id
Definition: xilinx_uart.h:84
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
Definition: no_os_irq.h:123
Structure holding the initialization parameters for Xilinx platform specific IRQ parameters.
Definition: xilinx_irq.h:64