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 
73 #define EEPROM_SIZE (4096U) /* 4kB */
74 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #include "periph_conf.h"
81 #include "default_timer_config.h"
82 
83 #endif /* PERIPH_CPU_H */
84 
PORT_E
@ PORT_E
port E
Definition: periph_cpu.h:40
PORT_C
@ PORT_C
port C
Definition: periph_cpu.h:38
default_timer_config.h
Default timer configuration.
PORT_A
@ PORT_A
port A
Definition: periph_cpu.h:36
PORT_D
@ PORT_D
port D
Definition: periph_cpu.h:39
PORT_F
@ PORT_F
port F
Definition: periph_cpu.h:41
PORT_L
@ PORT_L
port L
Definition: periph_cpu.h:44
PORT_K
@ PORT_K
port K
Definition: periph_cpu.h:43
PORT_H
@ PORT_H
port H
Definition: periph_cpu.h:41
PORT_B
@ PORT_B
port B
Definition: periph_cpu.h:37
PORT_J
@ PORT_J
port J
Definition: periph_cpu.h:42
PORT_G
@ PORT_G
port G
Definition: periph_cpu.h:42