board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2022 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
31 #include <stdint.h>
32 
46 #define BTN0_PIN GPIO0
47 
54 #define BTN0_MODE GPIO_IN_PU
55 
59 #ifndef BTN0_INT_FLANK
60 #define BTN0_INT_FLANK GPIO_FALLING
61 #endif
62 
66 #define BUTTON0_PIN BTN0_PIN
67 
81 #ifndef WS281X_PARAM_PIN
82 #define WS281X_PARAM_PIN (GPIO18)
83 #endif
84 #ifndef WS281X_PARAM_NUMOF
85 #define WS281X_PARAM_NUMOF (1U)
86 #endif
89 /* include common board definitions as last step */
90 #include "board_common.h"
91 
92 #ifdef __cplusplus
93 extern "C" {
94 #endif
95 
96 #ifdef __cplusplus
97 } /* end extern "C" */
98 #endif
99