tinyriscv/tests/example/include/gpio.h

10 lines
178 B
C
Raw Normal View History

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