2020-04-06 13:28:56 +00:00
|
|
|
#ifndef _GPIO_H_
|
|
|
|
#define _GPIO_H_
|
|
|
|
|
|
|
|
#define GPIO_BASE (0x40000000)
|
2020-06-14 02:45:55 +00:00
|
|
|
#define GPIO_CTRL (GPIO_BASE + (0x00))
|
2020-04-06 13:28:56 +00:00
|
|
|
#define GPIO_DATA (GPIO_BASE + (0x04))
|
|
|
|
|
|
|
|
#define GPIO_REG(addr) (*((volatile uint32_t *)addr))
|
|
|
|
|
|
|
|
#endif
|