atmega2560/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  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef PERIPH_CPU_H
22 #define PERIPH_CPU_H
23 
24 #include "periph_cpu_common.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
33 enum {
34  PORT_A = 0,
35  PORT_B = 1,
36  PORT_C = 2,
37  PORT_D = 3,
38  PORT_E = 4,
39  PORT_F = 5,
40  PORT_G = 6,
41  PORT_H = 7,
42  PORT_J = 8,
43  PORT_K = 9,
44  PORT_L = 10
45 };
46 
52 #define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 0), \
53  GPIO_PIN(PORT_D, 1), \
54  GPIO_PIN(PORT_D, 2), \
55  GPIO_PIN(PORT_D, 3), \
56  GPIO_PIN(PORT_E, 4), \
57  GPIO_PIN(PORT_E, 5), \
58  GPIO_PIN(PORT_E, 6), \
59  GPIO_PIN(PORT_E, 7) }
60 
65 #define I2C_PORT_REG PORTD
66 #define I2C_PIN_MASK (1 << PORTD0) | (1 << PORTD1)
67 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* PERIPH_CPU_H */
74