changeset 753:7f68d2ab0d33

SIM_TOOLKIT re-enabled: the SIM entity code is broken without it
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 11 Oct 2014 21:24:24 +0000
parents ec171ca4afb4
children 4c7f82008335
files gsm-fw/g23m-gsm/sim/Makefile gsm-fw/g23m-gsm/sim/sim_pei.c gsm-fw/include/condat-features.h
diffstat 3 files changed, 37 insertions(+), 37 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/g23m-gsm/sim/Makefile	Sat Oct 11 20:48:22 2014 +0000
+++ b/gsm-fw/g23m-gsm/sim/Makefile	Sat Oct 11 21:24:24 2014 +0000
@@ -5,7 +5,7 @@
 CPPFLAGS=-I. -I../../include -I../../include/condat -I../../gpf/inc \
 	-I../../cdginc
 
-OBJS=	sim_app.o sim_em.o sim_fkt.o
+OBJS=	sim_app.o sim_em.o sim_fkt.o sim_pei.o
 
 all:	${OBJS}
 
--- a/gsm-fw/g23m-gsm/sim/sim_pei.c	Sat Oct 11 20:48:22 2014 +0000
+++ b/gsm-fw/g23m-gsm/sim/sim_pei.c	Sat Oct 11 21:24:24 2014 +0000
@@ -22,6 +22,10 @@
 #ifndef SIM_PEI_C
 #define SIM_PEI_C
 
+#include "config.h"
+#include "fixedconf.h"
+#include "condat-features.h"
+
 #define ENTITY_SIM
 
 /*==== INCLUDES ===================================================*/
@@ -589,7 +593,7 @@
 #endif
 
 #ifdef FF_EM_MODE
-        em_init_sim_event_trace();
+  em_init_sim_event_trace();
 #endif /* FF_EM_MODE */
   cl_shrd_init(sim_handle);
   return PEI_OK;
@@ -645,43 +649,43 @@
 
 static void sim_timeout (USHORT index)
 {
-   if (index EQ SIM_TIMER)
-   {
-     if(sleepTimerRunning == TRUE)
-      {
-         TIMER_STOP(sim_handle, SLEEP_TIMER);
-      }
-          sleepTimerRunning = FALSE;
-      app_sim_timeout (SIM_TIMER);
-   }
-   else if(index EQ SLEEP_TIMER)
-   { 
-       sleepTimerRunning = FALSE;
-       app_sim_timeout (SLEEP_TIMER); 
-   } 
+  if (index EQ SIM_TIMER)
+  {
+    if(sleepTimerRunning == TRUE)
+    {
+      TIMER_STOP(sim_handle, SLEEP_TIMER);
+    }
+    sleepTimerRunning = FALSE;
+    app_sim_timeout (SIM_TIMER);
+  }
+  else if(index EQ SLEEP_TIMER)
+  { 
+    sleepTimerRunning = FALSE;
+    app_sim_timeout (SLEEP_TIMER); 
+  } 
 #ifdef SIM_TOOLKIT
   else
-   {
-      if(sleepTimerRunning == TRUE)
-       {
-	     TIMER_STOP(sim_handle, SLEEP_TIMER);
-       }
-      sleepTimerRunning = FALSE;
-      stk_timeout (index); 
-   } 
+  {
+    if(sleepTimerRunning == TRUE)
+    {
+      TIMER_STOP(sim_handle, SLEEP_TIMER);
+    }
+    sleepTimerRunning = FALSE;
+    stk_timeout (index); 
+  } 
 #endif
 
-if((startTimerPollOff == TRUE)&&(sim_data.idle_polling != TRUE))
- {
-	startTimerPollOff = FALSE;
-	sleepTimerRunning = TRUE;
-	TIMER_START(sim_handle,SLEEP_TIMER,35000); // this will not be effective as the SIM TIMER will expire before this and stop it.	Just to takecare of Sleep after the POLLING_OFF   STK command 
- } 
-
+  if((startTimerPollOff == TRUE)&&(sim_data.idle_polling != TRUE))
+  {
+     startTimerPollOff = FALSE;
+     sleepTimerRunning = TRUE;
+     TIMER_START(sim_handle,SLEEP_TIMER,35000);
+     // this will not be effective as the SIM TIMER will expire before this and
+     // stop it. Just to takecare of Sleep after the POLLING_OFF STK command
+  } 
 }
 
 
-
 #ifdef _SIMULATION_
 /*
 +--------------------------------------------------------------------+
--- a/gsm-fw/include/condat-features.h	Sat Oct 11 20:48:22 2014 +0000
+++ b/gsm-fw/include/condat-features.h	Sat Oct 11 21:24:24 2014 +0000
@@ -20,11 +20,7 @@
 #define	FF_HOMEZONE		1
 #define	FF_MMI_SMS_DYNAMIC	1
 #define	HAS_FLASH_EPROM		1
+#define	SIM_TOOLKIT		1
 #define	UART			1
 #define	USE_L1FD_FUNC_INTERFACE	1
 #define	VOCODER_FUNC_INTERFACE	1
-
-/* let's disable SIM toolkit for now */
-#if 0
-#define	SIM_TOOLKIT		1
-#endif