@ NO_OS_PULL_DOWN
Definition: no_os_gpio.h:76
void * extra
Definition: no_os_gpio.h:112
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:53
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:91
GPIO_TypeDef * port
Definition: stm32_gpio.h:65
int32_t stm32_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: stm32_gpio.c:325
uint32_t mode
Definition: stm32_gpio.h:52
int32_t port
Definition: no_os_gpio.h:87
@ NO_OS_PULL_UP_WEAK
Definition: no_os_gpio.h:77
int32_t number
Definition: no_os_gpio.h:89
Structure holding the initialization parameters for stm32 platform.
Definition: stm32_gpio.h:50
@ NO_OS_PULL_DOWN_WEAK
Definition: no_os_gpio.h:78
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:54
@ NO_OS_PULL_NONE
Definition: no_os_gpio.h:72
int32_t stm32_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: stm32_gpio.c:251
int32_t stm32_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: stm32_gpio.c:293
int32_t port
Definition: no_os_gpio.h:104
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
int32_t stm32_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: stm32_gpio.c:235
int32_t stm32_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: stm32_gpio.c:347
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:49
Header file for stm32 gpio specifics.
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
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
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:108
#define NULL
Definition: wrapper.h:64
const struct no_os_gpio_platform_ops stm32_gpio_ops
stm32 platform specific gpio platform ops structure
Definition: stm32_gpio.c:395
int32_t stm32_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: stm32_gpio.c:374
const struct no_os_gpio_platform_ops stm32_gpio_ops
stm32 platform specific GPIO platform ops structure
Definition: stm32_gpio.c:395
uint32_t speed
Definition: stm32_gpio.h:54
@ NO_OS_PULL_UP
Definition: no_os_gpio.h:74
void * extra
Definition: no_os_gpio.h:95
Header file of GPIO Interface.
uint32_t alternate
Definition: stm32_gpio.h:56
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:69
Header file of utility functions.
GPIO_InitTypeDef gpio_config
Definition: stm32_gpio.h:67
stm32 platform specific gpio descriptor
Definition: stm32_gpio.h:63
int32_t stm32_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: stm32_gpio.c:193
int32_t number
Definition: no_os_gpio.h:106
int32_t stm32_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: stm32_gpio.c:266
Error macro definition for ARM Compiler.