tinyriscv/sdk/bsp/include/gpio.h

11 lines
222 B
C
Raw Normal View History

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