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.
Prototype RF Driver for STM Sub-1 GHz RF Expansion Boards based on the SPSGRF-868 and SPSGRF-915 Modules for STM32 Nucleo
Currently supported boards:
Note, in order to use expansion board X-NUCLEO-IDS01A4 in mbed you need to perform the following HW modifications on the board:
- Unmount resistor
R4 - Mount resistor
R7
Furthermore, on some Nucleo development boards (e.g. the NUCLEO_F429ZI), in order to be able to use Ethernet together with these Sub-1 GHz RF expansion boards, you need to compile this driver with macro SPIRIT1_SPI_MOSI=PB_5 defined, while the development board typically requires some HW modification as e.g. described here!
This driver can be used together with the 6LoWPAN stack (a.k.a. Nanostack).
Revision 77:a9a9807bf3ed, committed 2018-01-18
- Comitter:
- Wolfgang Betz
- Date:
- Thu Jan 18 15:07:23 2018 +0100
- Parent:
- 75:8dc65c09af67
- Parent:
- 76:f4f990741baf
- Child:
- 78:65de72417cd3
- Child:
- 79:efe3f52f788d
- Child:
- 80:3f90e1d76090
- Commit message:
- Merge pull request #3 from SeppoTakalo/skip
Skip compilation if FEATURE_NANOSTACK is not enabled
Changed in this revision
diff -r 8dc65c09af67 -r a9a9807bf3ed source/NanostackRfPhySpirit1.cpp --- a/source/NanostackRfPhySpirit1.cpp Fri Sep 01 08:51:04 2017 +0200 +++ b/source/NanostackRfPhySpirit1.cpp Thu Jan 18 15:07:23 2018 +0100 @@ -1,6 +1,8 @@ +#include "NanostackRfPhySpirit1.h" + +#ifdef MBED_CONF_NANOSTACK_CONFIGURATION #if MBED_CONF_RTOS_PRESENT -#include "NanostackRfPhySpirit1.h" #include "SimpleSpirit1.h" #include "nanostack/platform/arm_hal_phy.h" #include "platform/arm_hal_interrupt.h" @@ -827,3 +829,4 @@ } #endif /* MBED_CONF_RTOS_PRESENT */ +#endif /* MBED_CONF_NANOSTACK_CONFIGURATION */ \ No newline at end of file
diff -r 8dc65c09af67 -r a9a9807bf3ed stm-spirit1-rf-driver/NanostackRfPhySpirit1.h
--- a/stm-spirit1-rf-driver/NanostackRfPhySpirit1.h Fri Sep 01 08:51:04 2017 +0200
+++ b/stm-spirit1-rf-driver/NanostackRfPhySpirit1.h Thu Jan 18 15:07:23 2018 +0100
@@ -3,6 +3,8 @@
#include <stdint.h>
+#ifdef MBED_CONF_NANOSTACK_CONFIGURATION
+
#include "NanostackRfPhy.h"
#include "PinNames.h"
@@ -51,4 +53,5 @@
const PinName _brd_led;
};
+#endif /* MBED_CONF_NANOSTACK_CONFIGURATION */
#endif /* NANOSTACK_RF_PHY_SPIRIT1_H_ */
X-NUCLEO-IDS01A4 Sub-1GHz RF Expansion Board