raspberry3_bare/gpio.h

10 lines
305 B
C
Raw Normal View History

2022-03-14 07:46:32 +01:00
#pragma once
#include "mmio.h"
// GPIO Function Select 1
#define GPFSEL1 (*(volatile unsigned *)(GP_BASE + 0x04))
// GPIO Pin Pull-up/down Enable
#define GPPUD (*(volatile unsigned *)(GP_BASE + 0x94))
// GPIO Pin Pull-up/down Enable Clock 0
#define GPPUDCLK0 (*(volatile unsigned *)(GP_BASE + 0x98))