Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 ML!PA Consulting GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "cpu.h"
19#include "periph/gpio.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define LED0_PIN GPIO_PIN(PA, 22)
30
31#define LED_PORT PORT->Group[PA]
32#define LED0_MASK (1 << 22)
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)
38
43#define APA102_PARAM_LED_NUMOF (1)
44#define APA102_PARAM_DATA_PIN GPIO_PIN(PB, 3)
45#define APA102_PARAM_CLK_PIN GPIO_PIN(PB, 2)
47
52#define MTD_0 mtd_dev_get(0)
54
59#define XTIMER_WIDTH (32)
60#define XTIMER_HZ (1000000ul)
62
63#ifdef __cplusplus
64}
65#endif
66
Low-level GPIO peripheral driver interface definitions.