Removed tinySA5 4 pole switches

pull/71/head
erikkaashoek 3 years ago
parent 8bfcfd77c8
commit c34e756bf0

@ -18,7 +18,7 @@
*/
#include "ch.h"
#ifdef TINYSA_F303
//#ifdef TINYSA_F303
#ifdef TINYSA_F072
#error "Remove comment for #ifdef TINYSA_F303"
#endif
@ -26,7 +26,7 @@
#define TINYSA4
#endif
#define TINYSA4_PROTO
#endif
//#endif
#ifdef TINYSA_F072
#ifdef TINYSA_F303

@ -360,10 +360,7 @@ void set_output_path(freq_t f, float level)
goto common;
case PATH_DIRECT:
if (max2871)
enable_ultra(false);
else
enable_ultra(true);
enable_ultra(true);
enable_direct(true);
enable_high(true);
enable_ADF_output(false, false);
@ -417,13 +414,8 @@ void set_input_path(freq_t f)
goto common;
case PATH_DIRECT:
if (max2871) {
enable_ultra(false);
enable_direct(true);
} else {
enable_ultra(true);
enable_direct(true);
}
enable_ultra(true);
enable_direct(true);
enable_high(true);
enable_extra_lna(setting.extra_lna);
if (setting.tracking_output)
@ -436,13 +428,8 @@ void set_input_path(freq_t f)
case PATH_ULTRA:
enable_ultra(true);
enable_high(false);
if (max2871) {
enable_direct(setting.extra_lna); // Acts as LNA switch in Ultra mode.
enable_extra_lna(false);
} else {
enable_direct(false);
enable_extra_lna(setting.extra_lna);
}
enable_direct(false);
enable_extra_lna(setting.extra_lna);
common:
enable_ADF_output(true, setting.tracking_output);
common2:

@ -2659,8 +2659,6 @@ static int old_ultra = 2;
if (s != old_ultra) {
old_ultra = s;
#ifdef TINYSA4
if (max2871)
s = !s;
if (s)
palClearLine(LINE_ULTRA);
else
@ -2716,8 +2714,6 @@ void enable_direct(int s)
if (s == old_direct)
return;
old_direct = s;
if (max2871)
s = !s;
if (s)
SI4463_set_gpio(4,SI446X_GPIO_MODE_DRIVE0);
else

Loading…
Cancel
Save

Powered by TurnKey Linux.