Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Lokotius Filzer
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
26
#include "cpu.h"
27
#include "
periph/gpio.h
"
28
#include "
periph/pm.h
"
29
30
#ifdef __cplusplus
31
extern
"C"
32
{
33
#endif
34
39
#define SX127X_PARAM_SPI (SPI_DEV(1))
40
#define SX127X_PARAM_SPI_NSS GPIO_PIN(PB, 31)
/* D10 */
41
#define SX127X_PARAM_RESET GPIO_PIN(PB, 15)
/* A0 */
42
#define SX127X_PARAM_DIO0 GPIO_PIN(PB, 16)
/* D2 */
43
#define SX127X_PARAM_DIO1 GPIO_PIN(PA, 11)
/* D3 */
44
#define SX127X_PARAM_DIO2 GPIO_PIN(PA, 12)
/* D4 */
45
#define SX127X_PARAM_DIO3 GPIO_PIN(PB, 17)
/* D5 */
46
#define SX127X_PARAM_PASELECT (SX127X_PA_RFO)
53
#define TCXO_PWR_PIN GPIO_PIN(PB, 3)
54
#define TX_OUTPUT_SEL_PIN GPIO_PIN(PA, 13)
55
#define TX_SWITCH_PWR_PIN GPIO_PIN(PA, 28)
62
#define LED_PORT PORT->Group[0]
63
#define LED0_PIN GPIO_PIN(PA, 22)
64
#define LED0_MASK (1 << 22)
65
#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
66
#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
67
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
70
#ifdef __cplusplus
71
}
72
#endif
73
gpio.h
Low-level GPIO peripheral driver interface definitions.
pm.h
Power management interface.
Generated on Mon Jun 30 2025 14:58:00 by
1.9.1