atmega1281/include/periph_cpu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 HAW Hamburg
3  * 2016 Freie Universit├Ąt Berlin
4  * 2016 INRIA
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
23 #ifndef PERIPH_CPU_H
24 #define PERIPH_CPU_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 #include "periph_cpu_common.h"
31 
35 enum {
36  PORT_A = 0,
37  PORT_B = 1,
38  PORT_C = 2,
39  PORT_D = 3,
40  PORT_E = 4,
41  PORT_F = 5,
42  PORT_G = 6,
43 };
44 
50 #define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 0), \
51  GPIO_PIN(PORT_D, 1), \
52  GPIO_PIN(PORT_D, 2), \
53  GPIO_PIN(PORT_D, 3), \
54  GPIO_PIN(PORT_E, 4), \
55  GPIO_PIN(PORT_E, 5), \
56  GPIO_PIN(PORT_E, 6), \
57  GPIO_PIN(PORT_E, 7) }
58 
63 #define I2C_PORT_REG PORTD
64 #define I2C_PIN_MASK (1 << PORTD0) | (1 << PORTD1)
65 
71 #define EEPROM_SIZE (4096U) /* 4kB */
72 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* PERIPH_CPU_H */
79