summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/apps/layer1/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/firmware/apps/layer1/main.c')
-rw-r--r--src/target/firmware/apps/layer1/main.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/target/firmware/apps/layer1/main.c b/src/target/firmware/apps/layer1/main.c
index db76098..8eaf4a6 100644
--- a/src/target/firmware/apps/layer1/main.c
+++ b/src/target/firmware/apps/layer1/main.c
@@ -87,19 +87,8 @@ int main(void)
twl3025_power_off();
}
-static int8_t vga_gain = 40;
-static int high_gain = 0;
static int afcout = 0;
-static void update_vga_gain(void)
-{
- printf("VGA Gain: %u %s\n", vga_gain, high_gain ? "HIGH" : "LOW");
- trf6151_compute_gain(vga_gain, high_gain);
- tpu_enq_sleep();
- tpu_enable(1);
- tpu_wait_idle();
-}
-
static void tspact_toggle(uint8_t num)
{
printf("TSPACT%u toggle\n", num);
@@ -115,22 +104,6 @@ static void key_handler(enum key_codes code, enum key_states state)
return;
switch (code) {
- case KEY_1: /* VGA gain decrement */
- vga_gain -= 2;
- if (vga_gain < 14)
- vga_gain = 14;
- update_vga_gain();
- break;
- case KEY_2: /* High/Low Rx gain */
- high_gain ^= 1;
- update_vga_gain();
- break;
- case KEY_3: /* VGA gain increment */
- vga_gain += 2;
- if (vga_gain > 40)
- vga_gain = 40;
- update_vga_gain();
- break;
case KEY_4:
tspact_toggle(6); /* TRENA (RFFE) */
break;