Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Bruno Chianca <brunobcf@gmail.com>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "cpu.h"
19#include "board_common.h"
20#include "periph/gpio.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
31#define LED0_PIN GPIO_PIN(0, 6)
32
34
39
41#define LED0_ON gpio_clear(LED0_PIN)
43#define LED0_OFF gpio_set(LED0_PIN)
45#define LED0_TOGGLE gpio_toggle(LED0_PIN)
46
48
53#define APA102_PARAM_LED_NUMOF (1)
54#define APA102_PARAM_DATA_PIN GPIO_PIN(0, 8)
55#define APA102_PARAM_CLK_PIN GPIO_PIN(1, 9)
57
63#define BTN0_PIN GPIO_PIN(0, 29)
65#define BTN0_MODE GPIO_IN_PU
67
68#ifdef __cplusplus
69}
70#endif
71
Low-level GPIO peripheral driver interface definitions.