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 
9 #pragma once
10 
20 #include <stdint.h>
21 
30 #define BTN0_PIN GPIO2
31 
38 #define BTN0_MODE GPIO_IN
39 
43 #ifndef BTN0_INT_FLANK
44 #define BTN0_INT_FLANK GPIO_FALLING
45 #endif
46 
50 #define BTN1_PIN GPIO8
51 
58 #define BTN1_MODE GPIO_IN
59 
63 #ifndef BTN1_INT_FLANK
64 #define BTN1_INT_FLANK GPIO_FALLING
65 #endif
66 
75 #define BTN2_PIN GPIO9
76 
80 #define BTN2_MODE GPIO_IN_PU
81 
85 #ifndef BTN2_INT_FLANK
86 #define BTN2_INT_FLANK GPIO_FALLING
87 #endif
93 #ifndef WS281X_PARAM_PIN
94 #define WS281X_PARAM_PIN GPIO10
95 #endif
96 
100 #ifndef WS281X_PARAM_NUMOF
101 #define WS281X_PARAM_NUMOF 16
102 #endif
103 
104 /* include common board definitions as last step */
105 #include "board_common.h"
106 
107 #ifdef __cplusplus
108 extern "C" {
109 #endif
110 
111 #ifdef __cplusplus
112 } /* end extern "C" */
113 #endif
114