board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 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 
20 #ifndef BOARD_H
21 #define BOARD_H
22 
23 #include <stdint.h>
24 
38 #define BTN0_PIN GPIO0
39 
43 #define BTN0_MODE GPIO_IN_PU
44 
48 #ifndef BTN0_INT_FLANK
49 #define BTN0_INT_FLANK GPIO_FALLING
50 #endif
51 
55 #define BUTTON0_PIN BTN0_PIN
56 
64 #define LED0_PIN GPIO15
65 #define LED0_ACTIVE 1
68 /* include common board definitions as last step */
69 #include "board_common.h"
70 
71 #ifdef __cplusplus
72 extern "C" {
73 #endif
74 
75 #ifdef __cplusplus
76 } /* end extern "C" */
77 #endif
78 
79 #endif /* BOARD_H */