board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2023 Benjamin Valentin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
17 #include <stdint.h>
18 
27 #define BTN0_PIN GPIO2
28 
35 #define BTN0_MODE GPIO_IN
36 
40 #ifndef BTN0_INT_FLANK
41 #define BTN0_INT_FLANK GPIO_FALLING
42 #endif
43 
47 #define BTN1_PIN GPIO8
48 
55 #define BTN1_MODE GPIO_IN
56 
60 #ifndef BTN1_INT_FLANK
61 #define BTN1_INT_FLANK GPIO_FALLING
62 #endif
63 
72 #define BTN2_PIN GPIO9
73 
77 #define BTN2_MODE GPIO_IN_PU
78 
82 #ifndef BTN2_INT_FLANK
83 #define BTN2_INT_FLANK GPIO_FALLING
84 #endif
90 #ifndef WS281X_PARAM_PIN
91 #define WS281X_PARAM_PIN GPIO10
92 #endif
93 
97 #ifndef WS281X_PARAM_NUMOF
98 #define WS281X_PARAM_NUMOF 16
99 #endif
100 
101 /* include common board definitions as last step */
102 #include "board_common.h"
103 
104 #ifdef __cplusplus
105 extern "C" {
106 #endif
107 
108 #ifdef __cplusplus
109 } /* end extern "C" */
110 #endif
111