Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
radiolib_riotos_params.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2026 Baptiste Le Duc <baptiste.leduc@etik.com>
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "board.h"
19
#include "
periph/gpio.h
"
20
#include "
periph/spi.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
33
#ifndef CONFIG_RADIOLIB_SPI
34
# ifdef SX127X_PARAM_SPI
35
# define CONFIG_RADIOLIB_SPI SX127X_PARAM_SPI
36
# else
37
# define CONFIG_RADIOLIB_SPI SPI_UNDEF
38
# endif
39
#endif
40
44
#ifndef CONFIG_RADIOLIB_SPI_CLK
45
# define CONFIG_RADIOLIB_SPI_CLK SPI_CLK_5MHZ
46
#endif
47
51
#ifndef CONFIG_RADIOLIB_SPI_NSS
52
# ifdef SX127X_PARAM_SPI_NSS
53
# define CONFIG_RADIOLIB_SPI_NSS SX127X_PARAM_SPI_NSS
54
# else
55
# define CONFIG_RADIOLIB_SPI_NSS GPIO_UNDEF
56
# endif
57
#endif
58
62
#ifndef CONFIG_RADIOLIB_RESET
63
# ifdef SX127X_PARAM_RESET
64
# define CONFIG_RADIOLIB_RESET SX127X_PARAM_RESET
65
# else
66
# define CONFIG_RADIOLIB_RESET GPIO_UNDEF
67
# endif
68
#endif
69
73
#ifndef CONFIG_RADIOLIB_IRQ
74
# ifdef SX127X_PARAM_DIO0
75
# define CONFIG_RADIOLIB_IRQ SX127X_PARAM_DIO0
76
# else
77
# define CONFIG_RADIOLIB_IRQ GPIO_UNDEF
78
# endif
79
#endif
80
84
#ifndef CONFIG_RADIOLIB_GPIO
85
# ifdef SX127X_PARAM_DIO1
86
# define CONFIG_RADIOLIB_GPIO SX127X_PARAM_DIO1
87
# else
88
# define CONFIG_RADIOLIB_GPIO GPIO_UNDEF
89
# endif
90
#endif
91
95
#ifndef CONFIG_RADIOLIB_FREQ
96
# define CONFIG_RADIOLIB_FREQ (868.0)
97
#endif
99
100
#ifdef __cplusplus
101
}
102
#endif
103
gpio.h
Low-level GPIO peripheral driver interface definitions.
spi.h
Low-level SPI peripheral driver interface definition.
Generated on Sat Oct 3 2026 14:10:59 by
1.13.2