Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2019 Robert Olsson <roolss@kth.se>
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 BOARD_H
21
#define BOARD_H
22
23
#include "cpu.h"
24
#include "
periph/gpio.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#define AT24MAC_PARAM_I2C_DEV I2C_DEV(0)
35
#define AT24MAC_PARAM_TYPE AT24MAC6XX
42
#define LED_PORT PORTE
43
#define LED_PORT_DDR DDRE
44
45
#define LED0_PIN GPIO_PIN(PORT_E, 4)
/* RED */
46
#define LED1_PIN GPIO_PIN(PORT_E, 3)
/* YELLOW */
47
48
#define LED0_MASK (1 << 4)
49
#define LED1_MASK (1 << 3)
50
51
#define LED0_MODE GPIO_OUT
52
#define LED0_OFF (LED_PORT |= LED0_MASK)
53
#define LED0_ON (LED_PORT &= ~LED0_MASK)
54
#define LED0_TOGGLE (LED_PORT ^= LED0_MASK)
55
56
#define LED1_MODE GPIO_OUT
57
#define LED1_OFF (LED_PORT |= LED1_MASK)
58
#define LED1_ON (LED_PORT &= ~LED1_MASK)
59
#define LED1_TOGGLE (LED_PORT ^= LED1_MASK)
66
#define LED_PANIC LED0_ON
73
#define DS18_PARAM_PIN GPIO_PIN(PORT_D, 7)
74
#define DS18_PARAM_PULL (GPIO_IN_PU)
81
#define XTIMER_DEV TIMER_DEV(0)
82
#define XTIMER_CHAN (0)
83
#define XTIMER_WIDTH (16)
84
#define XTIMER_HZ (62500UL)
95
#define BOOTLOADER_CLEARS_WATCHDOG_AND_PASSES_MCUSR 0
102
#define CPU_ATMEGA_CLK_SCALE_INIT CPU_ATMEGA_CLK_SCALE_DIV1
109
#define BTN0_PIN GPIO_PIN(PORT_B, 0)
110
#define BTN0_MODE GPIO_IN
113
#ifdef __cplusplus
114
}
115
#endif
116
117
#endif
/* BOARD_H */
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Wed Dec 4 2024 00:47:43 by
1.9.8