Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include "cpu.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define LED0_PIN_NUM 9
30#define LED0_PORT GPIO_PORT_C
31#define LED0_PORT_NUM PORT_C
32
33#define LED1_PIN_NUM 8
34#define LED1_PORT GPIO_PORT_C
35#define LED1_PORT_NUM PORT_C
37
42#define BTN0_PIN GPIO_PIN(PORT_A, 0)
43#define BTN0_MODE GPIO_IN
45
46#ifdef __cplusplus
47}
48#endif
49
50#include "stm32_leds.h"
51
Common LED macros.