atmega328p/include/periph_cpu.h¶
CPU specific definitions for internal peripheral handling.
-
GPIO_PIN
( x, y)¶ Define a CPU specific GPIO pin generator macro.
1
((x << 4) | y)
-
CPU_ATMEGA_EXT_INTS
¶ Available external interrupt pins on the ATmega328p family.
1 2
{ GPIO_PIN(PORT_D, 2), \ GPIO_PIN(PORT_D, 3) }
In order of their interrupt number.
-
enum
@7
¶ - PORT_B
= 1
- port B
- PORT_C
= 2
- port C
- PORT_D
= 3
- port D
- PORT_B
-
I2C_PORT_REG
¶ 1
PORTC
-
I2C_PIN_MASK
¶ 1
(1 << PORTC4) | (1 << PORTC5)
-
EEPROM_SIZE
¶ 1
(1024U) /* 1kB */