board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2025 David Picard
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 
18 #ifndef BOARD_H
19 #define BOARD_H
20 
21 #include <stdint.h>
22 
37 #define BTN0_PIN GPIO9
38 
47 #define BTN0_MODE GPIO_IN
48 
52 #ifndef BTN0_INT_FLANK
53 #define BTN0_INT_FLANK GPIO_FALLING
54 #endif
55 
59 #define BUTTON0_PIN BTN0_PIN
60 
63 /* include common board definitions as last step */
64 #include "board_common.h"
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif
69 
70 #ifdef __cplusplus
71 } /* end extern "C" */
72 #endif
73 
74 #endif /* BOARD_H */