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
* Copyright (C) 2023 Benjamin Valentin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
18
#ifndef BOARD_H
19
#define BOARD_H
20
21
#include <stdint.h>
22
31
#define BTN0_PIN GPIO2
32
39
#define BTN0_MODE GPIO_IN
40
44
#ifndef BTN0_INT_FLANK
45
#define BTN0_INT_FLANK GPIO_FALLING
46
#endif
47
51
#define BTN1_PIN GPIO8
52
59
#define BTN1_MODE GPIO_IN
60
64
#ifndef BTN1_INT_FLANK
65
#define BTN1_INT_FLANK GPIO_FALLING
66
#endif
67
76
#define BTN2_PIN GPIO9
77
81
#define BTN2_MODE GPIO_IN_PU
82
86
#ifndef BTN2_INT_FLANK
87
#define BTN2_INT_FLANK GPIO_FALLING
88
#endif
94
#ifndef WS281X_PARAM_PIN
95
#define WS281X_PARAM_PIN GPIO10
96
#endif
97
101
#ifndef WS281X_PARAM_NUMOF
102
#define WS281X_PARAM_NUMOF 16
103
#endif
104
105
/* include common board definitions as last step */
106
#include "board_common.h"
107
108
#ifdef __cplusplus
109
extern
"C"
{
110
#endif
111
112
#ifdef __cplusplus
113
}
/* end extern "C" */
114
#endif
115
116
#endif
/* BOARD_H */
Generated on Sat Nov 23 2024 01:58:05 by
1.9.8