Embedded Artistry Framework
Embedded Systems C++ Framework
Macros | Functions
gpio_helper.cpp File Reference
#include "gpio_helper.hpp"
#include <processor_includes.hpp>
#include <volatile/volatile.hpp>
Include dependency graph for gpio_helper.cpp:

Macros

#define NRF_P0   NRF_GPIO
 Implementation of the GPIO drivers is handled here so we can keep the ARM/Nordic headers decoupled from the rest of the system. More...
 

Functions

static NRF_GPIO_Type * portDecode (uint8_t port) noexcept
 
static void configure (uint8_t port, uint8_t pin, uint8_t dir, uint8_t input, uint8_t pull, uint8_t drive, uint8_t sense) noexcept
 

Macro Definition Documentation

◆ NRF_P0

#define NRF_P0   NRF_GPIO

Implementation of the GPIO drivers is handled here so we can keep the ARM/Nordic headers decoupled from the rest of the system.

Function Documentation

◆ configure()

static void configure ( uint8_t  port,
uint8_t  pin,
uint8_t  dir,
uint8_t  input,
uint8_t  pull,
uint8_t  drive,
uint8_t  sense 
)
inlinestaticnoexcept

◆ portDecode()

static NRF_GPIO_Type* portDecode ( uint8_t  port)
inlinestaticnoexcept