Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:db424a8eb3c6, committed 2020-06-12
- Comitter:
- Wayne Roberts
- Date:
- Fri Jun 12 11:44:32 2020 -0700
- Parent:
- 3:61705e66043e
- Child:
- 5:6269ee8fe13f
- Commit message:
- use latest radio-HAL
Changed in this revision
--- a/main.cpp Wed Sep 05 17:37:02 2018 -0700
+++ b/main.cpp Fri Jun 12 11:44:32 2020 -0700
@@ -1,17 +1,19 @@
#include "radio.h"
-#if defined(SX127x_H)
+#if defined(SX128x_H)
+ #define BW_KHZ 200
+ #define SPREADING_FACTOR 7
+ #define CF_HZ 2487000000
+ #define TX_DBM 6
+#else
+ #if defined(SX128x_H)
+ #define TX_DBM (Radio::chipType == CHIP_TYPE_SX1262 ? 20 : 14)
+ #else
+ #define TX_DBM 20
+ #endif
#define BW_KHZ 125
#define SPREADING_FACTOR 7
#define CF_HZ 915000000
-#elif defined(SX126x_H)
- #define BW_KHZ 125
- #define SPREADING_FACTOR 7
- #define CF_HZ 915000000
-#elif defined(SX128x_H)
- #define BW_KHZ 200
- #define SPREADING_FACTOR 7
- #define CF_HZ 2487000000
#endif
DigitalOut myled(LED1);
@@ -53,7 +55,6 @@
Radio::Init(&rev);
- Radio::radio.hw_reset();
Radio::Standby();
Radio::LoRaModemConfig(BW_KHZ, SPREADING_FACTOR, 1);
Radio::SetChannel(CF_HZ);
--- a/mbed-os.lib Wed Sep 05 17:37:02 2018 -0700 +++ b/mbed-os.lib Fri Jun 12 11:44:32 2020 -0700 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#c29fe896a1b5157fa33aa0c777ba92767f6a61f3 +https://github.com/ARMmbed/mbed-os/#b6370b4c37f3d4665ed1cdcb1afea85396bba1b3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sx126x.lib Fri Jun 12 11:44:32 2020 -0700 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/dudmuck/code/sx126x/#34f1f2bbe7b3
--- a/sx12xx_hal.lib Wed Sep 05 17:37:02 2018 -0700 +++ b/sx12xx_hal.lib Fri Jun 12 11:44:32 2020 -0700 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/dudmuck/code/sx12xx_hal/#c321b5919516 +https://os.mbed.com/users/dudmuck/code/sx12xx_hal/#78c5e644d37a