atmega328p/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 #define GPIO_PIN(x, y) ((x << 4) | y)
34 
38 enum {
39  PORT_B = 1,
40  PORT_C = 2,
41  PORT_D = 3
42 };
43 
48 #define I2C_PORT_REG PORTC
49 #define I2C_PIN_MASK (1 << PORTC4) | (1 << PORTC5)
50 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* PERIPH_CPU_H */
57