From 1b5d7cd40eb1c1f55deedf34d3d6324498b5f000 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 8 Feb 2025 17:50:57 -0800 Subject: Hello world. --- src/gpio.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/gpio.h (limited to 'src/gpio.h') 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 @@ +#pragma once + +enum +{ + // The offsets for reach register. + GPIO_BASE = 0x200000, + // Controls actuation of pull up/down to ALL GPIO pins. + GPPUD = (GPIO_BASE + 0x94), + // Controls actuation of pull up/down for specific GPIO pin. + GPPUDCLK0 = (GPIO_BASE + 0x98), +}; + -- cgit v1.2.3