void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: linux_delay.c:50
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:52
int generic_trng_init(struct no_os_trng_desc **desc, struct no_os_trng_init_param *param)
Definition: generic_trng.c:48
void * extra
Definition: no_os_gpio.h:106
#define GPIO_TIMEOUT_MS
Definition: linux_gpio.c:69
uint32_t timeout
Definition: ad413x.c:49
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:162
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:47
__attribute((weak))
Give token to semaphore semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:70
int32_t linux_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: linux_gpio.c:313
int32_t generic_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: generic_i2c.c:51
void no_os_mutex_init(void **mutex)
Initialize mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:44
void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: freertos_delay.c:44
#define configTICK_RATE_HZ
Definition: FreeRTOSConfig.h:39
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: freertos_delay.c:55
__attribute((weak))
Unlock mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:70
Linux platform specific GPIO descriptor.
Definition: linux_gpio.c:58
Header file of SPI Interface.
int32_t generic_timer_remove(struct no_os_timer_desc *desc)
Free the memory allocated by timer_setup().
Definition: generic_timer.c:67
int32_t no_os_axi_io_write(uint32_t base, uint32_t offset, uint32_t data)
AXI IO through UIO specific write function.
Definition: linux_axi_io.c:179
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: generic_uart.c:125
const struct no_os_gpio_platform_ops linux_gpio_ops
Linux platform specific GPIO platform ops structure.
Definition: linux_gpio.c:370
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:127
void no_os_semaphore_remove(void *semaphore)
Remove semaphore. semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:81
Header file of Delay functions.
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:67
int32_t no_os_axi_io_write(uint32_t base, uint32_t offset, uint32_t data)
AXI IO generic write function.
Definition: generic_axi_io.c:69
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
int32_t number
Definition: no_os_gpio.h:83
int32_t generic_timer_count_clk_set(struct no_os_timer_desc *desc, uint32_t freq_hz)
Set the timer clock frequency.
Definition: generic_timer.c:149
int32_t generic_timer_counter_get(struct no_os_timer_desc *desc, uint32_t *counter)
Get the value of the counter register for the timer.
Definition: generic_timer.c:104
Timer control module header.
Structure holding time data (seconds, microseconds).
Definition: no_os_delay.h:47
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
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: linux_delay.c:60
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: generic_uart.c:89
int value_fd
Definition: linux_gpio.c:62
int32_t linux_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: linux_gpio.c:178
const struct no_os_timer_platform_ops generic_timer_ops
generic platform specific timer platform ops structure
Definition: generic_timer.c:176
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:48
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:51
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
const struct no_os_gpio_platform_ops linux_gpio_ops
Linux specific GPIO platform ops structure.
Definition: linux_gpio.c:370
Stucture holding the UART descriptor.
Definition: no_os_uart.h:134
TRNG Descriptor.
Definition: no_os_trng.h:59
const struct no_os_spi_platform_ops generic_spi_ops
Generic platform SPI ops.
Definition: generic_spi.c:93
Header file of true random number generator.
int32_t generic_timer_stop(struct no_os_timer_desc *desc)
Stop a timer from counting.
Definition: generic_timer.c:91
void no_os_mutex_unlock(void *mutex)
Function for unlocking mutex.
int direction_fd
Definition: linux_gpio.c:60
int32_t no_os_uart_remove(struct no_os_uart_desc *desc)
Free the resources allocated by no_os_uart_init().
Definition: generic_uart.c:139
int32_t generic_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: generic_timer.c:53
struct no_os_time no_os_get_time(void)
Get current time.
Definition: freertos_delay.c:64
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: generic_uart.c:108
int32_t linux_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: linux_gpio.c:289
int32_t generic_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: generic_i2c.c:82
Init parameter for TRNG.
Definition: no_os_trng.h:70
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: generic_uart.c:53
#define NO_OS_UNUSED_PARAM(x)
Definition: no_os_util.h:117
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:79
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
int32_t no_os_axi_io_read(uint32_t base, uint32_t offset, uint32_t *data)
AXI IO generic read function.
Definition: generic_axi_io.c:53
int generic_trng_fill_buffer(struct no_os_trng_desc *desc, uint8_t *buff, uint32_t len)
Definition: generic_trng.c:64
int32_t generic_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: generic_gpio.c:83
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
int32_t linux_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: linux_gpio.c:261
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
const struct no_os_i2c_platform_ops generic_i2c_ops
Generic platform I2C ops.
Definition: generic_i2c.c:121
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:49
int32_t generic_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Get the timer clock frequency.
Definition: generic_timer.c:134
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:83
int32_t generic_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: generic_timer.c:79
Header file of I2C Interface.
int32_t generic_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: generic_gpio.c:95
void no_os_semaphore_give(void *semaphore)
int32_t linux_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: linux_gpio.c:233
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
unsigned int us
Definition: no_os_delay.h:48
int32_t generic_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: generic_i2c.c:65
int32_t no_os_axi_io_read(uint32_t base, uint32_t offset, uint32_t *data)
AXI IO through UIO/devmem read function.
Definition: linux_axi_io.c:163
int32_t generic_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: generic_i2c.c:105
int32_t linux_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: linux_gpio.c:77
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:110
const struct no_os_gpio_platform_ops generic_gpio_ops
Generic platform GPIO ops.
Definition: generic_gpio.c:174
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: generic_delay.c:60
int32_t generic_timer_counter_set(struct no_os_timer_desc *desc, uint32_t new_val)
Set the timer counter register value.
Definition: generic_timer.c:119
unsigned int s
Definition: no_os_delay.h:48
int32_t linux_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: linux_gpio.c:344
const struct no_os_trng_platform_ops aducm_trng_ops
Generic TRNG platform ops structure.
Definition: generic_trng.c:77
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: generic_uart.c:70
void no_os_semaphore_init(void **semaphore)
Initialize semaphore. semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:43
Header file of GPIO Interface.
int generic_trng_remove(struct no_os_trng_desc *desc)
Definition: generic_trng.c:58
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:145
Header file of UART interface.
Structure holding timer descriptor.
Definition: no_os_timer.h:57
void no_os_semaphore_take(void *semaphore)
Take token from semaphore. semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:59
Header file of utility functions.
void no_os_mutex_remove(void *mutex)
Remove mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:81
uint32_t no_os_uart_get_errors(struct no_os_uart_desc *desc)
Get number of UART errors.
Definition: generic_uart.c:151
void no_os_mutex_lock(void *mutex)
Lock mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:60
int32_t linux_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: linux_gpio.c:165
int32_t number
Definition: no_os_gpio.h:100
void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: generic_delay.c:50
Error macro definition for ARM Compiler.
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:110
int32_t generic_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: generic_spi.c:65
int32_t generic_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: generic_timer.c:164
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140