aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorThomas Tsou <tom@tsou.cc>2013-11-09 17:04:29 -0500
committerThomas Tsou <tom@tsou.cc>2013-11-15 23:35:07 -0500
commit79403355865a09037f505fb50d90695c28906f0e (patch)
treebc91a6aa7c9449f887913d8048d6c85cdf1021cc /Transceiver52M
parentf79c4d06ff20d2c8684de4892c1354a2cdfbfd18 (diff)
Transceiver52M: Default to 1 sample-per-symbol low powered devices
This includes ARM Cortex A8 and A15 powered device such as Beagle Board, Gumstix driven E100 USRP, and Arndale board. Set the reduced SPS value automatically for the user. For x86, if we don't support SSE3, then the architecture is probably ancient and not with using. Drop the sampling down anyways to at least make an attempt. Non floating point SIMD devices (e.g. Raspberry Pi) also fall in this category Signed-off-by: Thomas Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/runTransceiver.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/Transceiver52M/runTransceiver.cpp b/Transceiver52M/runTransceiver.cpp
index 395908c..e85ce56 100644
--- a/Transceiver52M/runTransceiver.cpp
+++ b/Transceiver52M/runTransceiver.cpp
@@ -23,7 +23,9 @@
*/
-
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "Transceiver.h"
#include "radioDevice.h"
@@ -42,9 +44,14 @@
* 1 - Uses minimized modulator (less computation, more distortion)
*
* Other values are invalid. Receive path (uplink) is always
- * downsampled to 1 sps
+ * downsampled to 1 sps. Default to 4 sps for all cases except for
+ * ARM and non-SIMD enabled architectures.
*/
-#define SPS 4
+#if defined(HAVE_NEON) || !defined(HAVE_SSE3)
+#define SPS 1
+#else
+#define SPS 4
+#endif
ConfigurationTable gConfig(CONFIGDB);