23#include "periph_cpu_common.h"
33#define PM_NUM_MODES (5)
34#define AVR8_PM_SLEEP_MODE_0 SLEEP_MODE_PWR_DOWN
35#define AVR8_PM_SLEEP_MODE_1 SLEEP_MODE_PWR_SAVE
36#define AVR8_PM_SLEEP_MODE_2 SLEEP_MODE_STANDBY
37#define AVR8_PM_SLEEP_MODE_3 SLEEP_MODE_ADC
58#define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 0), \
59 GPIO_PIN(PORT_D, 1), \
60 GPIO_PIN(PORT_D, 2), \
61 GPIO_PIN(PORT_D, 3), \
62 GPIO_PIN(PORT_E, 4), \
63 GPIO_PIN(PORT_E, 5), \
64 GPIO_PIN(PORT_E, 6), \
92#define I2C_PORT_REG PORTD
93#define I2C_PIN_MASK (1 << PORTD1) | (1 << PORTD0)
100#define EEPROM_SIZE (4096U)
107#include "periph_conf.h"
static bool atmega_has_pin_exti(uint8_t port_num, uint8_t pin_num)
Check if the given pin can be used as external interrupt.
static uint8_t atmega_pin2exti(uint8_t port_num, uint8_t pin_num)
Get the interrupt vector number of the given GPIO pin.
Default timer configuration.
CMSIS style register definitions for the atmega family.