tinyriscv/sdk/bsp/include/gpio.h

11 lines
232 B
C

#ifndef _GPIO_H_
#define _GPIO_H_
#define GPIO_BASE (0x30000000)
#define GPIO_CTRL (GPIO_BASE + (0x00))
#define GPIO_DATA (GPIO_BASE + (0x04))
#define GPIO_REG(addr) (*((volatile uint32_t *)addr))
#endif