board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2023 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
23 #include <stdint.h>
24 
38 #define BTN0_PIN GPIO0
39 
46 #define BTN0_MODE GPIO_IN_PU
47 
51 #ifndef BTN0_INT_FLANK
52 #define BTN0_INT_FLANK GPIO_FALLING
53 #endif
54 
58 #define BUTTON0_PIN BTN0_PIN
59 
68 #ifndef WS281X_PARAM_PIN
69 #define WS281X_PARAM_PIN (GPIO18)
70 #endif
71 #ifndef WS281X_PARAM_NUMOF
72 #define WS281X_PARAM_NUMOF (1U)
73 #endif
76 /* include common board definitions as last step */
77 #include "board_common.h"
78 
79 #ifdef __cplusplus
80 extern "C" {
81 #endif
82 
83 #ifdef __cplusplus
84 } /* end extern "C" */
85 #endif
86