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: 2021 Luo Jia (HUST IoT Security Lab)
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 7
31
#define LED0_PORT GPIO_PORT_E
32
#define LED0_PORT_NUM PORT_E
33
34
#define LED1_PIN_NUM 8
35
#define LED1_PORT GPIO_PORT_E
36
#define LED1_PORT_NUM PORT_E
37
38
#define LED2_PIN_NUM 9
39
#define LED2_PORT GPIO_PORT_E
40
#define LED2_PORT_NUM PORT_E
41
48
#define BTNWK_PIN GPIO_PIN(PORT_C, 13)
49
#define BTNWK_MODE GPIO_IN_PD
51
#define BTN0_PIN GPIO_PIN(PORT_D, 10)
52
#define BTN0_MODE GPIO_IN_PD
54
#define BTN1_PIN GPIO_PIN(PORT_D, 9)
55
#define BTN1_MODE GPIO_IN_PD
57
#define BTN2_PIN GPIO_PIN(PORT_D, 8)
58
#define BTN2_MODE GPIO_IN_PD
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#include "
stm32_leds.h
"
66
stm32_leds.h
Common LED macros.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1