All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

Macros and inline functions for accessing GPIOs of the ATmega family. More...

Detailed Description

Macros and inline functions for accessing GPIOs of the ATmega family.

Author
René Herthel rene-.nosp@m.hert.nosp@m.hel@o.nosp@m.utlo.nosp@m.ok.de
Francisco Acosta franc.nosp@m.isco.nosp@m..acos.nosp@m.ta@i.nosp@m.nria..nosp@m.fr
Laurent Navet laure.nosp@m.nt.n.nosp@m.avet@.nosp@m.gmai.nosp@m.l.com

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"
+ Include dependency graph for atmega_gpio.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.
 

Function Documentation

◆ atmega_ddr_addr()

static uint16_t atmega_ddr_addr ( gpio_t pin)
inlinestatic

Generate the DDRx address of the given pin.

Definition at line 69 of file atmega_gpio.h.

◆ atmega_pin_addr()

static uint16_t atmega_pin_addr ( gpio_t pin)
inlinestatic

Generate the PINx address of the given pin.

Definition at line 61 of file atmega_gpio.h.

◆ atmega_pin_num()

static uint8_t atmega_pin_num ( gpio_t pin)
inlinestatic

Extract the pin number of the given pin.

Definition at line 45 of file atmega_gpio.h.

◆ atmega_port_addr()

static uint16_t atmega_port_addr ( gpio_t pin)
inlinestatic

Generate the PORTx address of the give pin.

Definition at line 77 of file atmega_gpio.h.

◆ atmega_port_num()

static uint8_t atmega_port_num ( gpio_t pin)
inlinestatic

Extract the port number of the given pin.

Definition at line 53 of file atmega_gpio.h.