Loading...
Searching...
No Matches
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
18
19#include "cpu.h"
20#include "periph_conf.h"
21#include "periph_cpu.h"
22#include "periph/gpio.h"
23
24#ifdef __cplusplus
25extern "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)"
39
40#endif
41
42#ifdef __cplusplus
43}
44#endif
45
Configuration of CPU peripherals for the Raspberry Pi Pico.
Low-level GPIO peripheral driver interface definitions.