mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
63 lines
1.7 KiB
Diff
63 lines
1.7 KiB
Diff
From c68e8e74d3de1235c4d818d96573e33e42cbcb74 Mon Sep 17 00:00:00 2001
|
|
From: Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
Date: Thu, 11 Mar 2021 17:06:43 +0100
|
|
Subject: [PATCH 1/1] adapt to RIOT
|
|
|
|
---
|
|
src/sx126x.c | 4 ++--
|
|
src/{sx126x.h => sx126x_driver.h} | 6 +++---
|
|
src/{sx126x_regs.h => sx126x_driver_regs.h} | 0
|
|
3 files changed, 5 insertions(+), 5 deletions(-)
|
|
rename src/{sx126x.h => sx126x_driver.h} (99%)
|
|
rename src/{sx126x_regs.h => sx126x_driver_regs.h} (100%)
|
|
|
|
diff --git a/src/sx126x.c b/src/sx126x.c
|
|
index a61c3ce..2fa7d88 100644
|
|
--- a/src/sx126x.c
|
|
+++ b/src/sx126x.c
|
|
@@ -35,9 +35,9 @@
|
|
*/
|
|
|
|
#include <string.h> // memcpy
|
|
-#include "sx126x.h"
|
|
+#include "sx126x_driver.h"
|
|
#include "sx126x_hal.h"
|
|
-#include "sx126x_regs.h"
|
|
+#include "sx126x_driver_regs.h"
|
|
|
|
/*
|
|
* -----------------------------------------------------------------------------
|
|
diff --git a/src/sx126x.h b/src/sx126x_driver.h
|
|
similarity index 99%
|
|
rename from src/sx126x.h
|
|
rename to src/sx126x_driver.h
|
|
index 634ed82..e5ed101 100644
|
|
--- a/src/sx126x.h
|
|
+++ b/src/sx126x_driver.h
|
|
@@ -29,8 +29,8 @@
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
-#ifndef SX126X_H
|
|
-#define SX126X_H
|
|
+#ifndef SX126X_DRIVER_H
|
|
+#define SX126X_DRIVER_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
@@ -1517,6 +1517,6 @@ sx126x_status_t sx126x_set_trimming_capacitor_values( const void* context, const
|
|
}
|
|
#endif
|
|
|
|
-#endif // SX126X_H
|
|
+#endif // SX126X_DRIVER_H
|
|
|
|
/* --- EOF ------------------------------------------------------------------ */
|
|
diff --git a/src/sx126x_regs.h b/src/sx126x_driver_regs.h
|
|
similarity index 100%
|
|
rename from src/sx126x_regs.h
|
|
rename to src/sx126x_driver_regs.h
|
|
--
|
|
2.27.0
|
|
|