void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: linux_delay.c:56
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
int generic_trng_init(struct no_os_trng_desc **desc, struct no_os_trng_init_param *param)
Definition: generic_trng.c:54
void * extra
Definition: no_os_gpio.h:112
#define GPIO_TIMEOUT_MS
Definition: linux_gpio.c:75
uint32_t timeout
Definition: ad413x.c:55
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:168
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:53
__attribute((weak))
Give token to semaphore semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:76
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:319
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:57
void no_os_mutex_init(void **mutex)
Initialize mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:50
void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: freertos_delay.c:50
#define configTICK_RATE_HZ
Definition: FreeRTOSConfig.h:45
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: freertos_delay.c:61
__attribute((weak))
Unlock mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:76
Linux platform specific GPIO descriptor.
Definition: linux_gpio.c:64
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:73
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:185
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:131
const struct no_os_gpio_platform_ops linux_gpio_ops
Linux platform specific GPIO platform ops structure.
Definition: linux_gpio.c:376
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:133
void no_os_semaphore_remove(void *semaphore)
Remove semaphore. semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:87
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:73
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:75
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:123
int32_t number
Definition: no_os_gpio.h:89
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:155
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:110
Timer control module header.
Structure holding time data (seconds, microseconds).
Definition: no_os_delay.h:53
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:60
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: linux_delay.c:66
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:95
int value_fd
Definition: linux_gpio.c:68
int32_t linux_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: linux_gpio.c:184
const struct no_os_timer_platform_ops generic_timer_ops
generic platform specific timer platform ops structure
Definition: generic_timer.c:182
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:54
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:57
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:121
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
const struct no_os_gpio_platform_ops linux_gpio_ops
Linux specific GPIO platform ops structure.
Definition: linux_gpio.c:376
Stucture holding the UART descriptor.
Definition: no_os_uart.h:140
TRNG Descriptor.
Definition: no_os_trng.h:65
const struct no_os_spi_platform_ops generic_spi_ops
Generic platform SPI ops.
Definition: generic_spi.c:99
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:97
void no_os_mutex_unlock(void *mutex)
Function for unlocking mutex.
int direction_fd
Definition: linux_gpio.c:66
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:145
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:59
struct no_os_time no_os_get_time(void)
Get current time.
Definition: freertos_delay.c:70
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:114
int32_t linux_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: linux_gpio.c:295
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:88
Init parameter for TRNG.
Definition: no_os_trng.h:76
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:59
#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:85
Structure holding SPI descriptor.
Definition: no_os_spi.h:177
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:59
int generic_trng_fill_buffer(struct no_os_trng_desc *desc, uint8_t *buff, uint32_t len)
Definition: generic_trng.c:70
int32_t generic_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: generic_gpio.c:89
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
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:267
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:107
const struct no_os_i2c_platform_ops generic_i2c_ops
Generic platform I2C ops.
Definition: generic_i2c.c:127
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 generic_timer_count_clk_get(struct no_os_timer_desc *desc, uint32_t *freq_hz)
Get the timer clock frequency.
Definition: generic_timer.c:140
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:89
int32_t generic_timer_start(struct no_os_timer_desc *desc)
Start a timer.
Definition: generic_timer.c:85
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:101
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:239
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:75
unsigned int us
Definition: no_os_delay.h:54
int32_t generic_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: generic_i2c.c:71
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:169
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:111
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:83
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:70
#define NULL
Definition: wrapper.h:64
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:116
const struct no_os_gpio_platform_ops generic_gpio_ops
Generic platform GPIO ops.
Definition: generic_gpio.c:180
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: generic_delay.c:66
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:125
unsigned int s
Definition: no_os_delay.h:54
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:350
const struct no_os_trng_platform_ops aducm_trng_ops
Generic TRNG platform ops structure.
Definition: generic_trng.c:83
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:76
void no_os_semaphore_init(void **semaphore)
Initialize semaphore. semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:49
Header file of GPIO Interface.
int generic_trng_remove(struct no_os_trng_desc *desc)
Definition: generic_trng.c:64
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:151
Header file of UART interface.
Structure holding timer descriptor.
Definition: no_os_timer.h:63
void no_os_semaphore_take(void *semaphore)
Take token from semaphore. semaphore - Pointer toward the semaphore.
Definition: freertos_semaphore.c:65
Header file of utility functions.
void no_os_mutex_remove(void *mutex)
Remove mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:87
uint32_t no_os_uart_get_errors(struct no_os_uart_desc *desc)
Get number of UART errors.
Definition: generic_uart.c:157
void no_os_mutex_lock(void *mutex)
Lock mutex. mutex - Pointer toward the mutex.
Definition: freertos_mutex.c:66
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:171
int32_t number
Definition: no_os_gpio.h:106
void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: generic_delay.c:56
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:116
int32_t generic_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: generic_spi.c:71
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:170
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:131