26#include "periph_cpu_common.h"
36#define PM_NUM_MODES (5)
37#define AVR8_PM_SLEEP_MODE_0 SLEEP_MODE_PWR_DOWN
38#define AVR8_PM_SLEEP_MODE_1 SLEEP_MODE_PWR_SAVE
39#define AVR8_PM_SLEEP_MODE_2 SLEEP_MODE_STANDBY
40#define AVR8_PM_SLEEP_MODE_3 SLEEP_MODE_ADC
46#define GPIO_PIN(x, y) ((x << 4) | y)
62#define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 2), \
80 return ((pin_num == 2) || (pin_num == 3));
90#define I2C_PORT_REG PORTC
91#define I2C_PIN_MASK (1 << PORTC4) | (1 << PORTC5)
98#define EEPROM_SIZE (512U)
105#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.