Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches

Overview

Structs and Enums used by the driver.

Note
This is 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:85

Data Structures

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