17#include <drivers/espi.h>
20#define AST_ESPI_BASE 0x7E6EE000
21#define AST_ESPI_SYSEVT 0x98
22#define AST_ESPI_GPIO_VAL 0x9C
23#define AST_ESPI_GPIO_DIR 0xC0
25#define VW_GPIO_ENABLE true
26#define VW_GPIO_DISABLE false
void vw_gpio_reset(void)
Definition: hal_vw_gpio.c:127
bool vw_gpio_init(vw_gpio *config, uint8_t size)
Definition: hal_vw_gpio.c:140
bool vw_gpio_get(int number, uint8_t *value)
Definition: hal_vw_gpio.c:29
vw_gpio_direction
Definition: hal_vw_gpio.h:28
@ VW_GPIO_INPUT
Definition: hal_vw_gpio.h:30
@ VW_GPIO_OUTPUT
Definition: hal_vw_gpio.h:29
vw_gpio_value
Definition: hal_vw_gpio.h:33
@ VW_GPIO_HIGH
Definition: hal_vw_gpio.h:35
@ VW_GPIO_UNKNOWN
Definition: hal_vw_gpio.h:36
@ VW_GPIO_LOW
Definition: hal_vw_gpio.h:34
bool vw_gpio_set(int number, uint8_t value)
Definition: hal_vw_gpio.c:44
uint16_t size
Definition: pldm_oem.h:0
Definition: hal_vw_gpio.h:39
void(* int_cb)(uint8_t value)
Definition: hal_vw_gpio.h:44
uint8_t number
Definition: hal_vw_gpio.h:40
uint8_t direction
Definition: hal_vw_gpio.h:42
uint8_t value
Definition: hal_vw_gpio.h:43
bool is_enabled
Definition: hal_vw_gpio.h:41