Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
49
#define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 2), \
50
GPIO_PIN(PORT_D, 3) }
51
56
#define I2C_PORT_REG PORTC
57
#define I2C_PIN_MASK (1 << PORTC4) | (1 << PORTC5)
58
64
#define EEPROM_SIZE (1024U)
/* 1kB */
65
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#include "periph_conf.h"
72
#include "
default_timer_config.h
"
73
74
#endif
/* PERIPH_CPU_H */
75
PORT_C
@ PORT_C
port C
Definition:
periph_cpu.h:38
PORT_D
@ PORT_D
port D
Definition:
periph_cpu.h:39
PORT_B
@ PORT_B
port B
Definition:
periph_cpu.h:37
default_timer_config.h
Default timer configuration.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17