Go to the documentation of this file.
34 #ifndef XILINX_GPIO_H_
35 #define XILINX_GPIO_H_
void * extra
Definition: no_os_gpio.h:106
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:47
struct no_os_time no_os_get_time(void)
Get current time.
Definition: xilinx_delay.c:81
int32_t xil_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: xilinx_gpio.c:170
@ GPIO_PS
Definition: xilinx_gpio.h:56
Header file of Delay functions.
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific GPIO platform ops structure.
Definition: xilinx_gpio.c:450
enum xil_gpio_type type
Definition: xilinx_gpio.h:77
int32_t xil_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: xilinx_gpio.c:410
xil_gpio_type
Xilinx platform architecture sections.
Definition: xilinx_gpio.h:52
int32_t number
Definition: no_os_gpio.h:83
uint32_t device_id
Definition: xilinx_gpio.h:68
Structure holding time data (seconds, microseconds).
Definition: no_os_delay.h:47
int32_t xil_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: xilinx_gpio.c:251
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:48
void * instance
Definition: xilinx_gpio.h:81
int32_t xil_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: xilinx_gpio.c:362
void * config
Definition: xilinx_gpio.h:79
uint64_t no_os_div_u64_rem(uint64_t dividend, uint32_t divisor, uint32_t *remainder)
int32_t xil_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: xilinx_gpio.c:316
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific gpio platform ops structure.
Definition: xilinx_gpio.c:450
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
int32_t no_os_axi_io_write(uint32_t base, uint32_t offset, uint32_t data)
AXI IO Xilinx specific write function.
Definition: xilinx_axi_io.c:67
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
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: xilinx_delay.c:68
#define NULL
Definition: wrapper.h:64
unsigned int s
Definition: no_os_delay.h:48
void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: xilinx_delay.c:54
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: xilinx_gpio.h:64
int32_t xil_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: xilinx_gpio.c:186
void * extra
Definition: no_os_gpio.h:89
Header file of GPIO Interface.
@ GPIO_PL
Definition: xilinx_gpio.h:54
int32_t _gpio_init(struct no_os_gpio_desc *desc, const struct no_os_gpio_init_param *param)
Prepare the GPIO decriptor.
Definition: xilinx_gpio.c:63
Header file of utility functions.
int32_t xil_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: xilinx_gpio.c:135
int32_t number
Definition: no_os_gpio.h:100
enum xil_gpio_type type
Definition: xilinx_gpio.h:66
int32_t xil_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: xilinx_gpio.c:202
Xilinx platform specific GPIO descriptor.
Definition: xilinx_gpio.h:75
int32_t no_os_axi_io_read(uint32_t base, uint32_t offset, uint32_t *data)
AXI IO Xilinx specific read function.
Definition: xilinx_axi_io.c:53
uint64_t no_os_div_u64(uint64_t dividend, uint32_t divisor)