board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2024 Isikcan 'Jon' Yilmaz
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
47 
51 #ifndef BTN0_INT_FLANK
52 # define BTN0_INT_FLANK GPIO_FALLING
53 #endif
54 
58 #define BUTTON0_PIN BTN0_PIN
59 
69 #ifndef LED0_PIN
70 # define LED0_PIN GPIO21
71 # define LED0_ACTIVE (0)
72 #endif
73 
74 /* include common board definitions as last step */
75 #include "board_common.h"
76 
77 #ifdef __cplusplus
78 extern "C" {
79 #endif
80 
81 #ifdef __cplusplus
82 } /* end extern "C" */
83 #endif