diff options
Diffstat (limited to 'src/gpio.h')
| -rw-r--r-- | src/gpio.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gpio.h b/src/gpio.h new file mode 100644 index 0000000..9bb442b --- /dev/null +++ b/src/gpio.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | enum | ||
| 4 | { | ||
| 5 | // The offsets for reach register. | ||
| 6 | GPIO_BASE = 0x200000, | ||
| 7 | // Controls actuation of pull up/down to ALL GPIO pins. | ||
| 8 | GPPUD = (GPIO_BASE + 0x94), | ||
| 9 | // Controls actuation of pull up/down for specific GPIO pin. | ||
| 10 | GPPUDCLK0 = (GPIO_BASE + 0x98), | ||
| 11 | }; | ||
| 12 | |||
