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) Josua Arndt, Steffen Robertz 2017 RWTH Aachen
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
#include "
atmega_regs_common.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
enum
{
35
PORT_B
= 1,
36
PORT_D
= 3,
37
PORT_E
= 4,
38
PORT_F
= 5,
39
PORT_G
= 6,
40
};
48
#define CPU_ATMEGA_EXT_INTS { GPIO_PIN(PORT_D, 0), \
49
GPIO_PIN(PORT_D, 1), \
50
GPIO_PIN(PORT_D, 2), \
51
GPIO_PIN(PORT_D, 3), \
52
GPIO_PIN(PORT_E, 4), \
53
GPIO_PIN(PORT_E, 5), \
54
GPIO_PIN(PORT_E, 6), \
55
GPIO_PIN(PORT_E, 7) }
56
61
#define I2C_PORT_REG PORTD
62
#define I2C_PIN_MASK (1 << PORTD1) | (1 << PORTD0)
63
69
#define EEPROM_SIZE (8192U)
/* 8kB */
70
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#include "periph_conf.h"
77
#include "
default_timer_config.h
"
78
79
#endif
/* PERIPH_CPU_H */
80
PORT_E
@ PORT_E
port E
Definition:
periph_cpu.h:40
PORT_D
@ PORT_D
port D
Definition:
periph_cpu.h:39
default_timer_config.h
Default timer configuration.
PORT_F
@ PORT_F
port F
Definition:
periph_cpu.h:41
atmega_regs_common.h
CMSIS style register definitions for the atmega family.
PORT_B
@ PORT_B
port B
Definition:
periph_cpu.h:37
PORT_G
@ PORT_G
port G
Definition:
periph_cpu.h:42
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17