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 #include "periph_conf.h"
79 #include "default_timer_config.h"
80 
81 #endif /* PERIPH_CPU_H */
82 
PORT_E
@ PORT_E
port E
Definition: periph_cpu.h:40
PORT_C
@ PORT_C
port C
Definition: periph_cpu.h:38
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
default_timer_config.h
Default timer configuration.
PORT_B
@ PORT_B
port B
Definition: periph_cpu.h:37
PORT_G
@ PORT_G
port G
Definition: periph_cpu.h:42