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: 2020 ML!PA Consulting GmbH
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
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)
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)
54
#define BTN0_PIN GPIO_PIN(PA, 15)
55
#define BTN0_MODE GPIO_IN_PU
58
#ifdef __cplusplus
59
}
60
#endif
61
periph_conf.h
Peripheral MCU configuration for the Zigduino board.
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1