Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Benjamin Valentin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include <stdint.h>
20
25
34#define BTN0_PIN GPIO0
35
39#define BTN0_MODE GPIO_IN_PU
40
44#ifndef BTN0_INT_FLANK
45#define BTN0_INT_FLANK GPIO_FALLING
46#endif
47
51#define BUTTON0_PIN BTN0_PIN
52
54
60#define LED0_PIN GPIO15
61#define LED0_ACTIVE 1
63
64/* include common board definitions as last step */
65#include "board_common.h"
66
67#ifdef __cplusplus
68extern "C" {
69#endif
70
71#ifdef __cplusplus
72} /* end extern "C" */
73#endif
74