@ NO_OS_PULL_DOWN
Definition: no_os_gpio.h:70
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
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:85
int32_t pico_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: pico_gpio.c:152
Header file of Delay functions.
int32_t pico_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: pico_gpio.c:136
int32_t pico_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: pico_gpio.c:167
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
int32_t number
Definition: no_os_gpio.h:83
int32_t pico_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: pico_gpio.c:190
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:48
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: pico_delay.c:60
@ NO_OS_PULL_NONE
Definition: no_os_gpio.h:66
int32_t pico_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: pico_gpio.c:238
void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: pico_delay.c:50
const struct no_os_gpio_platform_ops pico_gpio_ops
pico platform specific GPIO platform ops structure
Definition: pico_gpio.c:271
int32_t pico_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO descriptor.
Definition: pico_gpio.c:95
const struct no_os_gpio_platform_ops pico_gpio_ops
pico platform specific gpio platform ops structure
Definition: pico_gpio.c:271
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
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
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:102
#define NULL
Definition: wrapper.h:64
int32_t pico_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: pico_gpio.c:257
@ NO_OS_PULL_UP
Definition: no_os_gpio.h:68
Header file of GPIO Interface.
Header file for pico gpio specifics.
pico platform specific gpio descriptor
Definition: pico_gpio.h:50
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
bool input_enabled
Definition: pico_gpio.h:52
Header file of utility functions.
int32_t number
Definition: no_os_gpio.h:100
int32_t pico_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: pico_gpio.c:216