Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Robert Olsson <roolss@kth.se>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
19
#include "cpu.h"
20
#include "
periph/gpio.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define AT24MAC_PARAM_I2C_DEV I2C_DEV(0)
31
#define AT24MAC_PARAM_TYPE AT24MAC6XX
38
#define LED_PORT PORTE
39
#define LED_PORT_DDR DDRE
40
41
#define LED0_PIN GPIO_PIN(PORT_E, 4)
/* RED */
42
#define LED1_PIN GPIO_PIN(PORT_E, 3)
/* YELLOW */
43
44
#define LED0_MASK (1 << 4)
45
#define LED1_MASK (1 << 3)
46
47
#define LED0_MODE GPIO_OUT
48
#define LED0_OFF (LED_PORT |= LED0_MASK)
49
#define LED0_ON (LED_PORT &= ~LED0_MASK)
50
#define LED0_TOGGLE (LED_PORT ^= LED0_MASK)
51
52
#define LED1_MODE GPIO_OUT
53
#define LED1_OFF (LED_PORT |= LED1_MASK)
54
#define LED1_ON (LED_PORT &= ~LED1_MASK)
55
#define LED1_TOGGLE (LED_PORT ^= LED1_MASK)
62
#define LED_PANIC LED0_ON
69
#define DS18_PARAM_PIN GPIO_PIN(PORT_D, 7)
70
#define DS18_PARAM_PULL (GPIO_IN_PU)
77
#define XTIMER_DEV TIMER_DEV(0)
78
#define XTIMER_CHAN (0)
79
#define XTIMER_WIDTH (16)
80
#define XTIMER_HZ (62500UL)
91
#define BOOTLOADER_CLEARS_WATCHDOG_AND_PASSES_MCUSR 0
98
#define CPU_ATMEGA_CLK_SCALE_INIT CPU_ATMEGA_CLK_SCALE_DIV1
105
#define BTN0_PIN GPIO_PIN(PORT_B, 0)
106
#define BTN0_MODE GPIO_IN
109
#ifdef __cplusplus
110
}
111
#endif
112
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1