board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Gunar Schorcht
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 
32 #ifndef BOARD_H
33 #define BOARD_H
34 
35 #include <stdint.h>
36 
50 #define BTN0_PIN GPIO0
51 
58 #define BTN0_MODE GPIO_IN_PU
59 
63 #ifndef BTN0_INT_FLANK
64 #define BTN0_INT_FLANK GPIO_FALLING
65 #endif
66 
70 #define BUTTON0_PIN BTN0_PIN
71 
85 #ifndef WS281X_PARAM_PIN
86 #define WS281X_PARAM_PIN (GPIO18)
87 #endif
88 #ifndef WS281X_PARAM_NUMOF
89 #define WS281X_PARAM_NUMOF (1U)
90 #endif
93 /* include common board definitions as last step */
94 #include "board_common.h"
95 
96 #ifdef __cplusplus
97 extern "C" {
98 #endif
99 
100 #ifdef __cplusplus
101 } /* end extern "C" */
102 #endif
103 
104 #endif /* BOARD_H */