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) 2017 Thomas Perrot <thomas.perrot@tupi.fr>
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
20
#ifndef PERIPH_CPU_H
21
#define PERIPH_CPU_H
22
23
#include "periph_cpu_common.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
32
enum
{
33
PORT_B
= 1,
34
PORT_C
= 2,
35
PORT_D
= 3,
36
PORT_E
= 4,
37
PORT_F
= 5
38
};
39
45
#define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 0), \
46
GPIO_PIN(PORT_D, 1), \
47
GPIO_PIN(PORT_D, 2), \
48
GPIO_PIN(PORT_D, 3) }
49
54
#define I2C_PORT_REG PORTD
55
#define I2C_PIN_MASK (1 << PORTD0) | (1 << PORTD1)
56
62
#define EEPROM_SIZE (1024U)
/* 1kB */
63
65
#ifdef __cplusplus
66
}
67
#endif
68
69
#include "periph_conf.h"
70
#include "
default_timer_config.h
"
71
72
#endif
/* PERIPH_CPU_H */
73
PORT_E
@ PORT_E
port E
Definition:
periph_cpu.h:40
PORT_C
@ PORT_C
port C
Definition:
periph_cpu.h:38
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 ATmega32U4 Timer Config.
PORT_B
@ PORT_B
port B
Definition:
periph_cpu.h:37
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17