Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdint.h>
19
20#include "cpu.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define LED0_PIN_NUM 5
31#define LED0_PORT GPIO_PORT_A
32#define LED0_PORT_NUM PORT_A
33
34#define LED1_PIN_NUM 13
35#define LED1_PORT GPIO_PORT_B
36#define LED1_PORT_NUM PORT_B
38
43#define BTN0_PIN GPIO_PIN(PORT_C, 13)
44#define BTN0_MODE GPIO_IN_PD
45
46#define BTN1_PIN GPIO_PIN(PORT_I, 9)
47#define BTN1_MODE GPIO_IN_PD
48
49#define BTN2_PIN GPIO_PIN(PORT_I, 10)
50#define BTN2_MODE GPIO_IN_PD
51
52#define BTN3_PIN GPIO_PIN(PORT_F, 11)
53#define BTN3_MODE GPIO_IN_PD
54
55#define BTN4_PIN GPIO_PIN(PORT_I, 8)
56#define BTN4_MODE GPIO_IN_PD
58
59#ifdef __cplusplus
60}
61#endif
62
63#include "stm32_leds.h"
64
Common LED macros.