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: 2019 Mesotic SAS
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
19
#include "cpu.h"
20
#include "
periph/gpio.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define SX127X_PARAM_SPI SPI_DEV(0)
31
#define SX127X_PARAM_SPI_NSS GPIO_PIN(1, 31)
32
#define SX127X_PARAM_RESET GPIO_PIN(1, 15)
33
#define SX127X_PARAM_DIO0 GPIO_PIN(1, 16)
34
#define SX127X_PARAM_DIO1 GPIO_PIN(0, 11)
35
#define SX127X_PARAM_DIO2 GPIO_PIN(0, 12)
36
#define SX127X_PARAM_DIO3 GPIO_PIN(1, 17)
37
#define SX127X_PARAM_PASELECT SX127X_PA_RFO
44
#define TCXO_PWR_PIN GPIO_PIN(PA, 9)
45
#define TX_OUTPUT_SEL_PIN GPIO_PIN(PA, 13)
52
#define LED_PORT PORT->Group[0]
54
#define LED0_PIN GPIO_PIN(PA, 18)
55
#define LED0_MASK (1 << 18)
56
#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
57
#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
58
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
60
#define LED1_PIN GPIO_PIN(PA, 19)
61
#define LED1_MASK (1 << 19)
62
#define LED1_ON (LED_PORT.OUTCLR.reg = LED1_MASK)
63
#define LED1_OFF (LED_PORT.OUTSET.reg = LED1_MASK)
64
#define LED1_TOGGLE (LED_PORT.OUTTGL.reg = LED1_MASK)
71
#define BTN0_PIN GPIO_PIN(PA, 28)
72
#define BTN0_MODE GPIO_IN_PU
79
#define MTD_0 mtd_dev_get(0)
82
#ifdef __cplusplus
83
}
84
#endif
85
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1