Loading...
Searching...
No Matches
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
9#pragma once
10
21
22#include <stdint.h>
23
28
37#define BTN0_PIN GPIO0
38
42#define BTN0_MODE GPIO_IN_PU
43
47#ifndef BTN0_INT_FLANK
48#define BTN0_INT_FLANK GPIO_FALLING
49#endif
50
54#define BUTTON0_PIN BTN0_PIN
55
57
63#define LED0_PIN GPIO15
64#define LED0_ACTIVE 1
66
67/* include common board definitions as last step */
68#include "board_common.h"
69
70#ifdef __cplusplus
71extern "C" {
72#endif
73
74#ifdef __cplusplus
75} /* end extern "C" */
76#endif
77