Loading...
Searching...
No Matches
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
17
18#include <stdint.h>
19
20#include "cpu.h"
21
22#ifdef __cplusplus
23extern "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
43
48#define BTNWK_PIN GPIO_PIN(PORT_C, 13)
49#define BTNWK_MODE GPIO_IN_PD
50
51#define BTN0_PIN GPIO_PIN(PORT_D, 10)
52#define BTN0_MODE GPIO_IN_PD
53
54#define BTN1_PIN GPIO_PIN(PORT_D, 9)
55#define BTN1_MODE GPIO_IN_PD
56
57#define BTN2_PIN GPIO_PIN(PORT_D, 8)
58#define BTN2_MODE GPIO_IN_PD
60
61#ifdef __cplusplus
62}
63#endif
64
65#include "stm32_leds.h"
66
Common LED macros.