summaryrefslogtreecommitdiff
path: root/src/gpio.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-02-08 17:50:57 -0800
committer3gg <3gg@shellblade.net>2025-02-08 17:50:57 -0800
commit1b5d7cd40eb1c1f55deedf34d3d6324498b5f000 (patch)
treea0bc21168f8270ee5fcb139498131dff884a7450 /src/gpio.h
parent0e1595330211351823e68691fca013bb47772aeb (diff)
Hello world.
Diffstat (limited to 'src/gpio.h')
-rw-r--r--src/gpio.h12
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
3enum
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