Macros and inline functions for accessing GPIOs of the ATmega family. More...
Macros and inline functions for accessing GPIOs of the ATmega family.
Definition in file atmega_gpio.h.
#include <stddef.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include "cpu.h"
#include "board.h"
#include "periph/gpio.h"
#include "periph_conf.h"
#include "periph_cpu.h"
Go to the source code of this file.
static uint8_t | atmega_pin_num (gpio_t pin) |
Extract the pin number of the given pin. | |
static uint8_t | atmega_port_num (gpio_t pin) |
Extract the port number of the given pin. | |
static uint16_t | atmega_pin_addr (gpio_t pin) |
Generate the PINx address of the given pin. | |
static uint16_t | atmega_ddr_addr (gpio_t pin) |
Generate the DDRx address of the given pin. | |
static uint16_t | atmega_port_addr (gpio_t pin) |
Generate the PORTx address of the give pin. | |
|
inlinestatic |
Generate the DDRx address of the given pin.
Definition at line 69 of file atmega_gpio.h.
|
inlinestatic |
Generate the PINx address of the given pin.
Definition at line 61 of file atmega_gpio.h.
|
inlinestatic |
Extract the pin number of the given pin.
Definition at line 45 of file atmega_gpio.h.
|
inlinestatic |
Generate the PORTx address of the give pin.
Definition at line 77 of file atmega_gpio.h.
|
inlinestatic |
Extract the port number of the given pin.
Definition at line 53 of file atmega_gpio.h.