FreeRTOS port on GAP8/RISC-V
|
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_t * | g_gpio_data [ARCHI_GPIO_NB_DEVICE] |
void __pi_gpio_handler | ( | void * | arg | ) |
References __pi_irq_handle_end_of_task(), ARCHI_GPIO_NB_DEVICE, pi_gpio_t::device_id, pi_gpio_t::gpio_mask, pi_gpio_t::gpio_status, pi_gpio_t::gpio_task, and hal_gpio_irq_status_get().
Referenced by pi_gpio_open().
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 | ||
) |
References pi_gpio_t::device_id, pi_gpio_t::gpio_mask, GPIO_TRACE_ERR, and hal_gpio_input_value_get().
int pi_gpio_mask_task_add | ( | struct pi_device * | device, |
uint32_t | mask, | ||
pi_task_t * | task, | ||
pi_gpio_notif_e | flags | ||
) |
References GPIO_TRACE_ERR, and pi_gpio_pin_task_add().
int pi_gpio_mask_task_remove | ( | struct pi_device * | device, |
uint32_t | mask | ||
) |
References GPIO_TRACE_ERR, and pi_gpio_pin_task_remove().
int pi_gpio_mask_write | ( | struct pi_device * | device, |
uint32_t | mask, | ||
uint32_t | value | ||
) |
References pi_gpio_t::device_id, pi_gpio_t::gpio_mask, GPIO_TRACE_ERR, and hal_gpio_output_value_set().
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 | ||
) |
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_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_pin_write | ( | struct pi_device * | device, |
uint32_t | pin, | ||
uint32_t | value | ||
) |
|
static |