XenevaOS
Loading...
Searching...
No Matches
gpio.h
Go to the documentation of this file.
1
30#ifndef __GPIO_H__
31#define __GPIO_H__
32
33#include "littleboot.h"
34
35#define GPFSEL0 ((volatile uint32_t*)(MMIO_BASE + 0x00200000))
36#define GPFSEL1 ((volatile uint32_t*)(MMIO_BASE + 0x00200004))
37#define GPFSEL2 ((volatile uint32_t*)(MMIO_BASE + 0x00200008))
38#define GPFSEL3 ((volatile uint32_t*)(MMIO_BASE + 0x0020000C))
39#define GPFSEL4 ((volatile uint32_t*)(MMIO_BASE + 0x00200010))
40#define GPFSET0 ((volatile uint32_t*)(MMIO_BASE + 0x0020001C))
41#define GPFSET1 ((volatile uint32_t*)(MMIO_BASE + 0x00200020))
42#define GPFCLR0 ((volatile uint32_t*)(MMIO_BASE + 0x00200028))
43#define GPLEV0 ((volatile uint32_t*)(MMIO_BASE + 0x00200034))
44#define GPLEV1 ((volatile uint32_t*)(MMIO_BASE + 0x00200038))
45#define GPEDS0 ((volatile uint32_t*)(MMIO_BASE + 0x00200040))
46#define GPEDS1 ((volatile uint32_t*)(MMIO_BASE + 0x00200044))
47#define GPHEN0 ((volatile uint32_t*)(MMIO_BASE + 0x00200064))
48#define GPHEN1 ((volatile uint32_t*)(MMIO_BASE + 0x00200068))
49#define GPPUD ((volatile uint32_t*)(MMIO_BASE + 0x00200094))
50#define GPPUDCLK0 ((volatile uint32_t*)(MMIO_BASE + 0x00200098))
51#define GPPUDCLK1 ((volatile uint32_t*)(MMIO_BASE + 0x0020009C))
52
53#endif