Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 ML!PA Consulting GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include "cpu.h"
20#include "periph/gpio.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define LED0_PIN GPIO_PIN(PA, 14)
31
32#define LED_PORT PORT->Group[PA]
33#define LED0_MASK (1 << 14)
34
35#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
36#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
37#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
39
44#define BTN0_PIN GPIO_PIN(PA, 15)
45#define BTN0_MODE GPIO_IN_PU
47
48#ifdef __cplusplus
49}
50#endif
51
Low-level GPIO peripheral driver interface definitions.