30#include <avr/interrupt.h>
35#include "periph_conf.h"
36#include "periph_cpu.h"
55 return (pin >> 4) & 0x0f;
static atmega_gpio_port_t * atmega_gpio_port(uint8_t port_num)
Get the GPIO PORT registers of the given GPIO PORT.
static uint16_t atmega_port_addr(gpio_t pin)
Generate the PORTx address of the give pin.
static uint16_t atmega_ddr_addr(gpio_t pin)
Generate the DDRx address of the given pin.
static uint8_t atmega_pin_num(gpio_t pin)
Extract the pin number of the given pin.
static uint16_t atmega_pin_addr(gpio_t pin)
Generate the PINx address of the given pin.
static uint8_t atmega_port_num(gpio_t pin)
Extract the port number of the given pin.
Low-level GPIO peripheral driver interface definitions.
stdio wrapper to extend the C libs stdio
Structure describing the memory layout of the registers of a GPIO port on ATmega MCUs.