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 Inria
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include "cpu.h"
19
#include "
periph/gpio.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define LED0_PIN GPIO_PIN(PA, 17)
30
31
#define LED_PORT PORT->Group[PA]
32
#define LED0_MASK (1 << 17)
33
34
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
35
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
36
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
37
38
#define LED0_NAME "LED(Yellow)"
41
#ifdef __cplusplus
42
}
43
#endif
44
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1