19 #define GPIO_ALL_INPUT 0xffffffff
23 GPIO->DIR = GPIO_ALL_INPUT;
47 return ((
GPIO->GET >> pin) & 1) != 0;
void gpioPinConf(int pin, GpioPinDir dir)
Configure PIN directionality.
uint32_t gpioGetValue()
Read all gpio pins at once.
GpioPinDir
Defines direction of GPIO.
void gpioPinSet(int pin, bool high)
Sets the pin state.
void gpioInit()
Initializes the GPIO.
This file assigns all device structures to memory mapped structures.
bool gpioPinGet(int pin)
Gets the PIN value, if set as input.
#define GPIO
GPIO base pointer.
void gpioSetValue(uint32_t mask)
Set the complete bitmask on the gpio pins.