Loading...
Searching...
No Matches
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
17
18#include <stdint.h>
19
20#include "cpu.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define XTIMER_WIDTH (16)
32
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)
48
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
69
74#define BTN0_PIN GPIO_PIN(PORT_B, 2)
75#define BTN0_MODE GPIO_IN_PU
77
78#ifdef __cplusplus
79}
80#endif
81
82#include "stm32_leds.h"
83
Common LED macros.