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
* SPDX-FileCopyrightText: 2020 ML!PA Consulting GmbH
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
19
#include "cpu.h"
20
#include "
periph_conf.h
"
21
#include "periph_cpu.h"
22
#include "
periph/gpio.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define XTIMER_DEV TIMER_DEV(0)
33
#define XTIMER_CHAN (0)
35
40
#define LED0_PIN GPIO_PIN(PA, 14)
41
42
#define LED_PORT PORT->Group[PA]
43
#define LED0_MASK (1 << 14)
44
45
#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
46
#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
47
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
49
54
#define BTN0_PIN GPIO_PIN(PA, 15)
55
#define BTN0_MODE GPIO_IN_PU
57
58
#ifdef __cplusplus
59
}
60
#endif
61
periph_conf.h
Configuration of CPU peripherals for the Atmel SAM D20 Xplained Pro board.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Mon Sep 15 2025 13:46:10 by
1.13.2