Go to the documentation of this file.
40 #ifndef PLATFORM_DRIVERS_H_
41 #define PLATFORM_DRIVERS_H_
52 #endif // PLATFORM_DRIVERS_H_
struct no_os_fifo_element * fifo
Definition: uart_extra.h:94
int32_t generic_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: generic_gpio.c:58
int32_t generic_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: generic_gpio.c:192
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
int32_t no_os_uart_read(struct no_os_uart_desc *desc, uint8_t *data, uint32_t bytes_number)
Read data from UART device.
Definition: no_os_uart.c:58
void * extra
Definition: no_os_uart.h:119
Structure describing a callback to be registered.
Definition: no_os_irq.h:136
struct no_os_irq_ctrl_desc * irq_desc
Definition: uart_extra.h:92
Header file of SPI Interface.
Header file of IRQ interface.
enum xil_uart_type type
Definition: uart_extra.h:75
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:82
char buff[UART_BUFF_LENGTH]
Definition: uart_extra.h:98
Xilinx platform specific UART descriptor.
Definition: uart_extra.h:86
int32_t generic_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: generic_gpio.c:147
uint32_t bytes_received
Definition: uart_extra.h:100
int32_t no_os_uart_init(struct no_os_uart_desc **desc, struct no_os_uart_init_param *param)
Initialize the UART communication peripheral.
Definition: no_os_uart.c:162
Header file of Delay functions.
uint32_t baud_rate
Definition: no_os_uart.h:134
int32_t no_os_trng_fill_buffer(struct no_os_trng_desc *desc, uint8_t *buff, uint32_t len)
Fill buffer with random numbers.
Definition: no_os_trng.c:81
int32_t generic_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: generic_gpio.c:78
#define WRITE_SIZE
Definition: no_os_uart.c:56
uint32_t no_os_uart_get_errors(struct no_os_uart_desc *desc)
Get number of UART errors.
Definition: no_os_uart.c:195
unsigned char u8
Definition: wrapper.h:156
uint32_t irq_id
Definition: uart_extra.h:77
enum xil_uart_type type
Definition: uart_extra.h:88
uint8_t device_id
Definition: no_os_uart.h:128
int32_t generic_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: generic_spi.c:56
Stucture holding the UART descriptor.
Definition: no_os_uart.h:126
TRNG Descriptor.
Definition: aducm3029_trng.c:67
const struct no_os_spi_platform_ops generic_spi_ops
Generic platform SPI ops.
Definition: generic_spi.c:113
Header file of true random number generator.
uint32_t total_error_count
Definition: uart_extra.h:102
uint32_t len
Definition: no_os_fifo.h:62
uint32_t max_speed_hz
Definition: no_os_i2c.h:68
void * extra
Definition: no_os_uart.h:136
int32_t no_os_fifo_insert(struct no_os_fifo_element **p_fifo, char *buff, uint32_t len)
int32_t no_os_trng_init(struct no_os_trng_desc **desc, struct no_os_trng_init_param *param)
Initialize descriptor.
Definition: no_os_trng.c:63
struct no_os_fifo_element * no_os_fifo_remove(struct no_os_fifo_element *p_fifo)
Init parameter for TRNG.
Definition: no_os_trng.h:64
#define NO_OS_UNUSED_PARAM(x)
Definition: no_os_util.h:115
int32_t generic_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: generic_spi.c:91
Structure holding SPI descriptor.
Definition: no_os_spi.h:132
int32_t no_os_uart_write(struct no_os_uart_desc *desc, const uint8_t *data, uint32_t bytes_number)
Write data to UART device.
Definition: no_os_uart.c:83
int32_t generic_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: generic_gpio.c:94
void no_os_trng_remove(struct no_os_trng_desc *desc)
Free resources allocated in descriptor.
Definition: no_os_trng.c:73
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition: uart_extra.h:73
int32_t no_os_i2c_write(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
Write data to a slave device.
Definition: i2c.c:94
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
struct no_os_irq_ctrl_desc * irq_desc
Definition: uart_extra.h:79
uint32_t baud_rate
Definition: no_os_uart.h:111
Structure holding I2C descriptor.
Definition: no_os_i2c.h:81
Structure for Interrupt Request descriptor.
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:55
int32_t no_os_uart_read_nonblocking(struct no_os_uart_desc *desc, uint8_t *data, uint32_t bytes_number)
Submit reading buffer to the UART driver.
Definition: no_os_uart.c:110
Header file of I2C Interface.
uint32_t max_speed_hz
Definition: no_os_spi.h:116
void * instance
Definition: uart_extra.h:104
int32_t generic_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: generic_gpio.c:108
int32_t no_os_i2c_read(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
Read data from a slave device.
Definition: i2c.c:128
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
#define NULL
Definition: wrapper.h:64
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:103
const struct no_os_gpio_platform_ops generic_gpio_ops
Generic platform GPIO ops.
Definition: generic_gpio.c:209
char * data
Definition: no_os_fifo.h:60
uint8_t device_id
Definition: no_os_uart.h:105
uint32_t fifo_read_offset
Definition: uart_extra.h:96
int32_t no_os_uart_remove(struct no_os_uart_desc *desc)
Free the resources allocated by no_os_uart_init().
Definition: no_os_uart.c:181
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:144
int32_t no_os_uart_write_nonblocking(struct no_os_uart_desc *desc, const uint8_t *data, uint32_t bytes_number)
Submit writting buffer to the UART driver.
Definition: no_os_uart.c:137
Header file of GPIO Interface.
int32_t generic_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: generic_gpio.c:170
Header file of UART interface.
Header file of utility functions.
uint32_t irq_id
Definition: uart_extra.h:90
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:155
Definition: no_os_irq.h:119
int32_t no_os_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: i2c.c:56
int32_t no_os_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: i2c.c:75
int32_t generic_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: generic_gpio.c:125
int32_t generic_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: generic_spi.c:75
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:112