periph_cpu.h File Reference

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

Detailed Description

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

Go to the source code of this file.

#define GPIO_PIN(x, y)   ((x << 4) | y)
 Define a CPU specific GPIO pin generator macro.
 
#define CPU_ATMEGA_EXT_INTS
 Available external interrupt pins on the ATmega1284p family. More...
 
enum  { PORT_A = 0, PORT_B = 1, PORT_C = 2, PORT_D = 3 }
 Available ports on the ATmega1284p family. More...
 

Defines for the I2C interface

#define I2C_PORT_REG   PORTC
 
#define I2C_PIN_MASK   (1 << PORTC0) | (1 << PORTC1)
 

EEPROM configuration

#define EEPROM_SIZE   (4096U) /* 4kB */
 

Macro Definition Documentation

◆ CPU_ATMEGA_EXT_INTS

#define CPU_ATMEGA_EXT_INTS
Value:
{ GPIO_PIN(PORT_D, 2), \
GPIO_PIN(PORT_D, 3), \
GPIO_PIN(PORT_B, 2) }

Available external interrupt pins on the ATmega1284p family.

In order of their interrupt number

Definition at line 52 of file periph_cpu.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Available ports on the ATmega1284p family.

Enumerator
PORT_A 

port A

PORT_B 

port B

PORT_C 

port C

PORT_D 

port D

Definition at line 40 of file periph_cpu.h.

PORT_D
@ PORT_D
port D
Definition: periph_cpu.h:39
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
PORT_B
@ PORT_B
port B
Definition: periph_cpu.h:37