Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
18
#include <stdint.h>
19
20
#include "cpu.h"
21
22
#ifdef __cplusplus
23
extern
"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
43
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
44
#define BTN0_MODE GPIO_IN_PD
46
#define BTN1_PIN GPIO_PIN(PORT_I, 9)
47
#define BTN1_MODE GPIO_IN_PD
49
#define BTN2_PIN GPIO_PIN(PORT_I, 10)
50
#define BTN2_MODE GPIO_IN_PD
52
#define BTN3_PIN GPIO_PIN(PORT_F, 11)
53
#define BTN3_MODE GPIO_IN_PD
55
#define BTN4_PIN GPIO_PIN(PORT_I, 8)
56
#define BTN4_MODE GPIO_IN_PD
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#include "
stm32_leds.h
"
64
stm32_leds.h
Common LED macros.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1