Go to the documentation of this file.
33 #ifndef CHIBIOS_GPIO_H_
34 #define CHIBIOS_GPIO_H_
void * extra
Definition: no_os_gpio.h:106
iomode_t mode
Definition: chibios_gpio.h:50
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:47
int32_t chibios_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: chibios_gpio.c:233
iopadid_t pad
Definition: chibios_gpio.h:61
Header file of Delay functions.
ioportid_t port
Definition: chibios_gpio.h:46
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_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:48
Structure holding the initialization parameters for chibios os.
Definition: chibios_gpio.h:44
int32_t chibios_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: chibios_gpio.c:182
iomode_t mode
Definition: chibios_gpio.h:63
void * no_os_malloc(size_t size)
Allocate memory and return a pointer to it.
Definition: chibios_alloc.c:43
chibios platform specific gpio descriptor
Definition: chibios_gpio.h:57
int32_t chibios_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: chibios_gpio.c:124
int32_t port
Definition: no_os_gpio.h:98
const struct no_os_gpio_platform_ops chibios_gpio_ops
chibios platform specific gpio platform ops structure
Definition: chibios_gpio.c:281
iopadid_t pad
Definition: chibios_gpio.h:48
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
int32_t chibios_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: chibios_gpio.c:155
int32_t chibios_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO descriptor.
Definition: chibios_gpio.c:81
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: chibios_delay.c:42
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 chibios_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: chibios_gpio.c:212
ioportid_t port
Definition: chibios_gpio.h:59
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:102
#define NULL
Definition: wrapper.h:64
int32_t chibios_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: chibios_gpio.c:140
unsigned int s
Definition: no_os_delay.h:48
void * extra
Definition: no_os_gpio.h:89
Header file of GPIO Interface.
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
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.
struct no_os_time no_os_get_time(void)
Get current time.
Definition: chibios_delay.c:51
Header file for chibios gpio specifics.
int32_t number
Definition: no_os_gpio.h:100
Error macro definition for ARM Compiler.
const struct no_os_gpio_platform_ops chibios_gpio_ops
chibios platform specific GPIO platform ops structure
Definition: chibios_gpio.c:281
int32_t chibios_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: chibios_gpio.c:260