FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap9/pmsis/drivers/gpio/gpio.c File Reference

Data Structures

struct  pi_gpio_t
 

Functions

void __pi_gpio_handler (void *arg)
 
void pi_gpio_conf_init (struct pi_gpio_conf *conf)
 
int pi_gpio_open (struct pi_device *device)
 
int pi_gpio_pin_configure (struct pi_device *device, pi_gpio_e gpio, pi_gpio_flags_e flags)
 
int pi_gpio_pin_write (struct pi_device *device, uint32_t pin, uint32_t value)
 
int pi_gpio_pin_read (struct pi_device *device, uint32_t pin, uint32_t *value)
 
void pi_gpio_pin_notif_configure (struct pi_device *device, uint32_t pin, pi_gpio_notif_e flags)
 
void pi_gpio_pin_notif_clear (struct pi_device *device, uint32_t pin)
 
int pi_gpio_pin_notif_get (struct pi_device *device, uint32_t pin)
 
int pi_gpio_pin_task_add (struct pi_device *device, uint32_t pin, pi_task_t *task, pi_gpio_notif_e flags)
 
int pi_gpio_pin_task_remove (struct pi_device *device, uint32_t pin)
 
int pi_gpio_mask_configure (struct pi_device *device, uint32_t mask, pi_gpio_flags_e flags)
 
int pi_gpio_mask_write (struct pi_device *device, uint32_t mask, uint32_t value)
 
int pi_gpio_mask_read (struct pi_device *device, uint32_t mask, uint32_t *value)
 
int pi_gpio_mask_task_add (struct pi_device *device, uint32_t mask, pi_task_t *task, pi_gpio_notif_e flags)
 
int pi_gpio_mask_task_remove (struct pi_device *device, uint32_t mask)
 

Variables

static pi_gpio_tg_gpio_data [ARCHI_GPIO_NB_DEVICE]
 

Function Documentation

void pi_gpio_conf_init ( struct pi_gpio_conf *  conf)
int pi_gpio_mask_configure ( struct pi_device *  device,
uint32_t  mask,
pi_gpio_flags_e  flags 
)
int pi_gpio_mask_read ( struct pi_device *  device,
uint32_t  mask,
uint32_t *  value 
)
int pi_gpio_mask_task_add ( struct pi_device *  device,
uint32_t  mask,
pi_task_t task,
pi_gpio_notif_e  flags 
)
int pi_gpio_mask_task_remove ( struct pi_device *  device,
uint32_t  mask 
)
int pi_gpio_mask_write ( struct pi_device *  device,
uint32_t  mask,
uint32_t  value 
)
void pi_gpio_pin_notif_clear ( struct pi_device *  device,
uint32_t  pin 
)
void pi_gpio_pin_notif_configure ( struct pi_device *  device,
uint32_t  pin,
pi_gpio_notif_e  flags 
)
int pi_gpio_pin_notif_get ( struct pi_device *  device,
uint32_t  pin 
)
int pi_gpio_pin_read ( struct pi_device *  device,
uint32_t  pin,
uint32_t *  value 
)
int pi_gpio_pin_task_remove ( struct pi_device *  device,
uint32_t  pin 
)
int pi_gpio_pin_write ( struct pi_device *  device,
uint32_t  pin,
uint32_t  value 
)

Variable Documentation

pi_gpio_t* g_gpio_data[ARCHI_GPIO_NB_DEVICE]
static