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: 2021 Otto-von-Guericke-Universität Magdeburg
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
28
#ifdef BOARD_RPI_PICO
33
#define LED0_PIN GPIO_PIN(0, 25)
34
#define LED0_ON do {SIO->GPIO_OUT_SET = 1UL << 25;} while (0)
35
#define LED0_OFF do {SIO->GPIO_OUT_CLR = 1UL << 25;} while (0)
36
#define LED0_TOGGLE do {SIO->GPIO_OUT_XOR = 1UL << 25;} while (0)
37
#define LED0_NAME "LED(Green)"
40
#endif
41
42
#ifdef __cplusplus
43
}
44
#endif
45
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