RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches

Overview

Structs and Enums used by the driver.

Note
This is an example show how to instantiate GPIO with gpio_instance_t and gpio_hwreg_t.
#define GPIO_0 (gpio_hwreg_t*)SYSTEM_GPIO_0_IO_CTRL
gpio_instance_t gpio_0 = {
.hwreg = GPIO_0,
.output = 0x00, // Set GPIO Output pin Value
.outputEnable = 0x0E, // Set to Enable GPIO pin as OUTPUT.
};
void gpio_applyConfig(gpio_instance_t *inst)
Apply stored GPIO configuration to hardware.
Definition gpio.c:87
GPIO instance.
Definition gpio.h:104

Data Structures

struct  gpio_hwreg_t
 GPIO hardware register map. More...
struct  gpio_instance_t
 GPIO instance. More...