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: 2017 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 XTIMER_WIDTH (16)
37
#define SX127X_PARAM_SPI (SPI_DEV(1))
38
#define SX127X_PARAM_SPI_NSS GPIO_PIN(PORT_A, 15)
39
40
#define SX127X_PARAM_RESET GPIO_PIN(PORT_C, 0)
41
#define SX127X_PARAM_DIO0 GPIO_PIN(PORT_B, 4)
42
#define SX127X_PARAM_DIO1 GPIO_PIN(PORT_B, 1)
43
#define SX127X_PARAM_DIO2 GPIO_PIN(PORT_B, 0)
44
#define SX127X_PARAM_DIO3 GPIO_PIN(PORT_C, 13)
45
46
#define RADIO_TCXO_VCC_PIN GPIO_PIN(PORT_A, 12)
53
#define LED0_PIN_NUM 5
54
#define LED0_PORT GPIO_PORT_A
55
#define LED0_PORT_NUM PORT_A
56
57
#define LED1_PIN_NUM 5
58
#define LED1_PORT GPIO_PORT_B
59
#define LED1_PORT_NUM PORT_B
60
61
#define LED2_PIN_NUM 6
62
#define LED2_PORT GPIO_PORT_B
63
#define LED2_PORT_NUM PORT_B
64
65
#define LED3_PIN_NUM 7
66
#define LED3_PORT GPIO_PORT_B
67
#define LED3_PORT_NUM PORT_B
74
#define BTN0_PIN GPIO_PIN(PORT_B, 2)
75
#define BTN0_MODE GPIO_IN_PU
78
#ifdef __cplusplus
79
}
80
#endif
81
82
#include "
stm32_leds.h
"
83
stm32_leds.h
Common LED macros.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1