Prototype RF driver for STM Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo.

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).

Files at this revision

API Documentation at this revision

Comitter:
Seppo Takalo
Date:
Thu Jan 18 13:29:40 2018 +0200
Parent:
75:8dc65c09af67
Child:
77:a9a9807bf3ed
Commit message:
Skip compilation if FEATURE_NANOSTACK is not enabled

Changed in this revision

source/NanostackRfPhySpirit1.cpp Show annotated file Show diff for this revision Revisions of this file
stm-spirit1-rf-driver/NanostackRfPhySpirit1.h Show annotated file Show diff for this revision Revisions of this file
--- a/source/NanostackRfPhySpirit1.cpp	Fri Sep 01 08:51:04 2017 +0200
+++ b/source/NanostackRfPhySpirit1.cpp	Thu Jan 18 13:29:40 2018 +0200
@@ -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
--- 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 13:29:40 2018 +0200
@@ -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_ */