1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-23 21:43:51 +01:00

47 lines
927 B
C

/*
* SPDX-FileCopyrightText: 2021 Otto-von-Guericke-Universität Magdeburg
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup boards_rpi_pico
* @ingroup boards_rpi_pico_w
* @{
*
* @file
* @brief Board specific definitions for the Raspberry Pi Pico
*
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
*/
#include "cpu.h"
#include "periph_conf.h"
#include "periph_cpu.h"
#include "periph/gpio.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef BOARD_RPI_PICO
/**
* @name LED configuration
* @{
*/
#define LED0_PIN GPIO_PIN(0, 25)
#define LED0_ON do {SIO->GPIO_OUT_SET = 1UL << 25;} while (0)
#define LED0_OFF do {SIO->GPIO_OUT_CLR = 1UL << 25;} while (0)
#define LED0_TOGGLE do {SIO->GPIO_OUT_XOR = 1UL << 25;} while (0)
#define LED0_NAME "LED(Green)"
/** @} */
#endif
#ifdef __cplusplus
}
#endif
/** @} */