Prototype RF driver for STM Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo.
Dependents: DISCO_IOT-wifi_client
Fork of stm-spirit1-rf-driver by
Revision 37:bc043030b55a, committed 2016-11-22
- Comitter:
- Wolfgang Betz
- Date:
- Tue Nov 22 17:30:54 2016 +0100
- Parent:
- 36:cc14f5a17bd4
- Child:
- 38:5deec3ab2025
- Commit message:
- Adapt timeout periods
Changed in this revision
--- a/source/SimpleSpirit1.cpp Tue Nov 22 14:05:39 2016 +0100 +++ b/source/SimpleSpirit1.cpp Tue Nov 22 17:30:54 2016 +0100 @@ -17,7 +17,7 @@ #define st_lib_spirit_irqs SpiritIrqs -#define STATE_TIMEOUT (1000) +#define STATE_TIMEOUT (100) // betzw: switching force & back from standby is on some devices quite unstable #define USE_STANDBY_STATE
--- a/stm-spirit1-rf-driver/SimpleSpirit1.h Tue Nov 22 14:05:39 2016 +0100
+++ b/stm-spirit1-rf-driver/SimpleSpirit1.h Tue Nov 22 17:30:54 2016 +0100
@@ -58,7 +58,7 @@
static SimpleSpirit1 *_singleton;
/** Communication Interface Instance Variables **/
- UnlockedSPI _spi; // betzw - NOTE: Arduino pins are valid only for NUCLEO-F401RE
+ UnlockedSPI _spi; // betzw - NOTE: Morpho/Zio pins are valid only for NUCLEO-F401RE
// mosi: PA_7 (D11)
// miso: PA_6 (D12)
// sclk: PB_3 (D3) or
@@ -85,7 +85,7 @@
}
void start_rx_timeout(void) {
- _rx_receiving_timeout.attach_us(Callback<void()>(this, &SimpleSpirit1::rx_timeout_handler), 500 * 1000); // 500ms
+ _rx_receiving_timeout.attach_us(Callback<void()>(this, &SimpleSpirit1::rx_timeout_handler), 100 * 1000); // 100ms
}
void stop_rx_timeout(void) {
