Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2026 Gunar Schorcht
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
23
24
#include <stdint.h>
25
30
38
#define BTN0_PIN GPIO0
39
43
#define BTN0_MODE GPIO_IN_PU
44
48
#ifndef BTN0_INT_FLANK
49
# define BTN0_INT_FLANK GPIO_FALLING
50
#endif
51
55
#define BUTTON0_PIN BTN0_PIN
56
58
67
#define LED0_PIN GPIO13
68
#define LED0_ACTIVE (1)
69
70
#ifndef WS281X_PARAM_PIN
71
# define WS281X_PARAM_PIN (GPIO46)
72
#endif
73
#ifndef WS281X_PARAM_NUMOF
74
# define WS281X_PARAM_NUMOF (1U)
75
#endif
77
85
#if MODULE_SDCARD_SPI || DOXYGEN
86
# define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
87
# define SDCARD_SPI_PARAM_CS SPI0_CS0
88
# define SDCARD_SPI_PARAM_CLK SPI0_SCK
89
# define SDCARD_SPI_PARAM_MOSI SPI0_MOSI
90
# define SDCARD_SPI_PARAM_MISO SPI0_MISO
91
# define SDCARD_SPI_PARAM_POWER GPIO_UNDEF
92
#endif
94
95
/* include common board definitions as last step */
96
#include "board_common.h"
97
98
#ifdef __cplusplus
99
extern
"C"
{
100
#endif
101
102
#ifdef __cplusplus
103
}
104
#endif
105
Generated on Wed Nov 25 2026 14:49:45 by
1.13.2