changeset 233:a3ca660219a1

l1tm_func.c: l1tm_misc_param_write() reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jan 2017 06:49:27 +0000
parents 3061759abe6a
children 09f0a502745e
files chipsetsw/layer1/tm_cfile/l1tm_func.c
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/tm_cfile/l1tm_func.c	Sun Jan 15 06:24:22 2017 +0000
+++ b/chipsetsw/layer1/tm_cfile/l1tm_func.c	Sun Jan 15 06:49:27 2017 +0000
@@ -1147,9 +1147,20 @@
   tm_return->index = 0;
 }
 
+/* TCS211 function missing in LoCosto, reconstructed from disassembly */
 void l1tm_misc_param_write(T_TESTMODE_PRIM *prim, T_TM_RETURN *tm_return)
 {
-/* TCS211 function missing in LoCosto, to be reconstructed from disasm */
+  tm_return->index = prim->u.tm_params.index;
+  tm_return->size = 0;
+  switch (prim->u.tm_params.index) {
+  case ADC_ENA_FLAG:
+    l1_config.adc_enable = prim->u.tm_params.value;
+    tm_return->status = E_OK;
+    break;
+  default:
+    Cust_tm_misc_param_write(tm_return, prim->u.tm_params.index,
+                             prim->u.tm_params.value);
+  }
 }
 
 void l1tm_misc_param_read(T_TESTMODE_PRIM *prim, T_TM_RETURN *tm_return)