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 
19 #include <stdint.h>
20 
21 #include "cpu.h"
22 #include "periph_conf.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define XTIMER_BACKOFF (11)
33 #define XTIMER_WIDTH (16)
40 #define SX127X_PARAM_SPI_NSS GPIO_PIN(PORT_B, 0)
41 
42 #define SX127X_PARAM_RESET GPIO_PIN(PORT_A, 2)
43 #define SX127X_PARAM_DIO0 GPIO_PIN(PORT_B, 1)
44 #define SX127X_PARAM_DIO1 GPIO_PIN(PORT_B, 10)
45 #define SX127X_PARAM_DIO2 GPIO_PIN(PORT_B, 11)
46 /* stm32l1xxx Errata: Pull-up on PB7 when configured in analog mode */
47 #define SX127X_PARAM_DIO3 GPIO_PIN(PORT_B, 7)
48 
49 #define SX127X_PARAM_PASELECT (SX127X_PA_BOOST)
50 
51 #define SX127X_PARAM_RX_SWITCH GPIO_PIN(PORT_C, 13)
52 #define SX127X_PARAM_TX_SWITCH GPIO_PIN(PORT_A, 4)
55 #ifdef __cplusplus
56 }
57 #endif
58 
Peripheral MCU configuration for the Zigduino board.