periph_cpu.h File Reference

CPU specific definitions for internal peripheral handling. More...

Detailed Description

CPU specific definitions for internal peripheral handling.

Author
Josua Arndt jarnd.nosp@m.t@ia.nosp@m.s.rwt.nosp@m.h-aa.nosp@m.chen..nosp@m.de
Steffen Robertz steff.nosp@m.en.r.nosp@m.obert.nosp@m.z@rw.nosp@m.th-aa.nosp@m.chen.nosp@m..de

Definition in file periph_cpu.h.

#include "periph_cpu_common.h"
#include "atmega_regs_common.h"
+ Include dependency graph for periph_cpu.h:

Go to the source code of this file.

Available ports on the ATmega256rfr family

#define CPU_ATMEGA_EXT_INTS
 Available external interrupt pins on the ATmega256rfr family. More...
 
enum  {
  PORT_B = 1, PORT_D = 3, PORT_E = 4, PORT_F = 5,
  PORT_G = 6
}
 

Defines for the I2C interface

#define I2C_PORT_REG   PORTD
 
#define I2C_PIN_MASK   (1 << PORTD1) | (1 << PORTD0)
 

EEPROM configuration

#define EEPROM_SIZE   (8192U) /* 8kB */
 

Macro Definition Documentation

◆ CPU_ATMEGA_EXT_INTS

#define CPU_ATMEGA_EXT_INTS
Value:
{ GPIO_PIN(PORT_D, 0), \
GPIO_PIN(PORT_D, 1), \
GPIO_PIN(PORT_D, 2), \
GPIO_PIN(PORT_D, 3), \
GPIO_PIN(PORT_E, 4), \
GPIO_PIN(PORT_E, 5), \
GPIO_PIN(PORT_E, 6), \
GPIO_PIN(PORT_E, 7) }
port E
Definition: periph_cpu.h:40
port D
Definition: periph_cpu.h:39
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35

Available external interrupt pins on the ATmega256rfr family.

In order of their interrupt number.

Definition at line 47 of file periph_cpu.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PORT_B 

port B

PORT_D 

port D

PORT_E 

port E

PORT_F 

port F

PORT_G 

port G

Definition at line 34 of file periph_cpu.h.