changeset 242:f8f7024caae3

l1tm_stats.c: reconstruction complete, exact match to TCS211 binary object
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jan 2017 17:43:07 +0000
parents 1b48892cee25
children cddc6d2d16e8
files chipsetsw/layer1/tm_cfile/l1tm_stats.c
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/tm_cfile/l1tm_stats.c	Sun Jan 15 17:28:17 2017 +0000
+++ b/chipsetsw/layer1/tm_cfile/l1tm_stats.c	Sun Jan 15 17:43:07 2017 +0000
@@ -283,7 +283,7 @@
 
   if (l1_config.tmode.stats_config.auto_result_loops)
   {
-    if ( ((l1tm.tmode_stats.loop_count) %((WORD32) l1_config.tmode.stats_config.auto_result_loops)) == 0) //omaps00090550
+    if ( (l1tm.tmode_stats.loop_count % l1_config.tmode.stats_config.auto_result_loops) == 0)
       // time to report current stats.  call l1tm_stats_read 
     {
       l1tm_stats_read(&tm_ret, l1_config.tmode.stats_config.stat_type, l1_config.tmode.stats_config.stat_bitmask);
@@ -300,7 +300,7 @@
 
   if (l1_config.tmode.stats_config.auto_reset_loops)
   {
-    if (((l1tm.tmode_stats.loop_count) %( (WORD32)l1_config.tmode.stats_config.auto_reset_loops)) == 0)  //omaps00090550
+    if ((l1tm.tmode_stats.loop_count % l1_config.tmode.stats_config.auto_reset_loops) == 0)
       // time to reset stats.
     {
       l1tm_reset_rx_stats();
@@ -332,14 +332,9 @@
     {
       // acknowledge end of RF_ENABLE operation
 
-    #if (ETM_PROTOCOL == 1)
-      tm_ret.mid = ETM_RF;
-      tm_ret.status    = -ETM_FINISHED;
-    #else
-      tm_ret.status    = E_FINISHED;
-    #endif
       tm_ret.cid       = RF_ENABLE;
       tm_ret.index     = 0;  //  No index value is sent
+      tm_ret.status    = E_FINISHED;
 
       tm_ret.size      = 1;
       tm_ret.result[0] = 1;