view src/cs/riviera/rv/rv_defined_swe.h @ 303:f76436d19a7a default tip

!GPRS config: fix long-standing AT+COPS chance hanging bug There has been a long-standing bug in FreeCalypso going back years: sometimes in the AT command bring-up sequence of an ACI-only MS, the AT+COPS command would produce only a power scan followed by cessation of protocol stack activity (only L1 ADC traces), instead of the expected network search sequence. This behaviour was seen in different FC firmware versions going back to Citrine, and seemed to follow some law of chance, not reliably repeatable. This bug has been tracked down and found to be specific to !GPRS configuration, stemming from our TCS2/TCS3 hybrid and reconstruction of !GPRS support that was bitrotten in TCS3.2/LoCosto version. ACI module psa_mms.c, needed only for !GPRS, was missing in the TCS3 version and had to be pulled from TCS2 - but as it turns out, there is a new field in the MMR_REG_REQ primitive that needs to be set correctly, and that psa_mms.c module is the place where this initialization needed to be added.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Jun 2023 08:23:37 +0000
parents 4e78acac3d88
children
line wrap: on
line source

/**
 *
 * @file	rv_defined_swe.h
 *
 * Definition of the SWE that will be compiled.
 *
 * To include a SWE in the build, the System/env.mak file is used.
 * Before the build, a rv_swe.h file is generated from env.mak.
 * This file includes rv_swe.h and makes some adjustement if necessary
 * (e.g. mandatory SWE to include if some other is included, include
 * of group of SWE, etc).
 *
 * @author	Cristian Livadiotti
 * @version	0.4
 *
 */

/*
 * Revision History:
 *
 * 10/10/2000	Cristian Livadiotti		Create.
 * 10/18/2001   Christophe Favergeon	Updated for R2D.
 * 10/15/2002   Laurent Sollier			Updated for automatic definition from env.mak file.
 * 11/19/2002	Vincent Oberle			Added RivieraTool support to automatic definition.
 *
 * (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved
 */

#ifndef _RV_DEFINED_SWE_H_
#define _RV_DEFINED_SWE_H_

#ifndef _WINDOWS
   #include "config/l1sw.cfg"
   #include "config/rv.cfg"
   #include "config/swconfig.cfg"
   #include "config/debug.cfg"
#endif

/*
 * rv_swe.h is generated before build from System/env.mak
 * It is used both for RivieraTool and Target.
 */
#include "rv_swe.h"


/* ------------------------------------------------------------------
 * Grouped SWEs
 * Some define in rv_swe.h might not represent one SWE, but a group
 * of SWEs, this is decoded here.
 * ------------------------------------------------------------------ */


/*
 * J2ME SW entities
 * If RVM_J2ME_K_SWE is defined, the SWE's for the Java KVM are defined.
 */
#ifdef RVM_JAVA_K_SWE
   #define RVM_KGC_SWE
   #define RVM_KIL_SWE
   #define RVM_KCL_SWE
   #define RVM_KMM_SWE
   #define RVM_KNM_SWE
   #define RVM_UVM_SWE
   #define RVM_KZP_SWE
   #define RVM_KPG_SWE
   #define RVM_JTM_SWE
#endif

/*
 * AUDIO_FRAMEWORK SW entities
 * If it is defined, AUDIO SWE is defined and AUDIO BACKGROUND may be defined
 * depending on available audio features
 */

#ifdef RVM_AUDIO_SWE
  #define RVM_AUDIO_MAIN_SWE
  #if ((MELODY_E2) || (L1_GTT == 1))
    #define RVM_AUDIO_BGD_SWE
  #endif
#endif


/*
 * Obigo SWEs.
 */
#if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
   #define RVM_MSFE_SWE
   #define RVM_MSME_SWE
   #define RVM_STKE_SWE
   #define RVM_PHSE_SWE
   #define RVM_PRSE_SWE
   #define RVM_IBSE_SWE
   #define RVM_SELE_SWE
   #define RVM_SECE_SWE
   #if ((defined RVM_OBIGO_WAP_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
      #define RVM_BRSE_SWE
      #define RVM_BRAE_SWE
   #endif
   #if ((defined RVM_OBIGO_MMS_FULL_SWE) || (defined RVM_OBIGO_FULL_SWE))
      #define RVM_MMSE_SWE
      #define RVM_SLSE_SWE
      #define RVM_MEAE_SWE
      #define RVM_SLAE_SWE
   #endif
#endif


/* ----------------------------------------
 * WIDCOMM SWEs.
 * ---------------------------------------- */
#ifdef BLUETOOTH_INCLUDED
    #ifdef _WINDOWS
        #define RVM_BTH_SWE
    #else
        #define RVM_HCI_SWE
    #endif
    #define RVM_GKI_SWE
    #define RVM_BTU_SWE
#endif

/* ----------------------------------------
 * Specifics for a RivieraTool build.
 * ---------------------------------------- */
#ifdef _WINDOWS

   #ifndef RVM_ATP_UART_SWE
      #define RVM_ATP_UART_SWE
   #endif

   /* If a TCP/IP Winsocket implementation is defined */
   #ifdef RVM_RNET_WS_SWE
      #define RVM_RNET_SWE          /* Define the generic API. */
      #ifdef RVM_RNET_RT_SWE
         #undef RVM_RNET_RT_SWE     /* Undef Bridge implemetation. */
      #endif
      #ifdef RVM_RNET_BR_SWE
         #undef RVM_RNET_BR_SWE     /* Undef Real implemetation. */
      #endif
   #endif
   /* If TCP/IP Bridge implementation is defined */
   #ifdef RVM_RNET_BR_SWE
      #define RVM_RNET_SWE          /* Define the generic API. */
      #ifdef RVM_RNET_RT_SWE
         #undef RVM_RNET_RT_SWE     /* Undef Real implemetation. */
      #endif
   #endif
   /* If TCP/IP Real implementation is defined */
   #ifdef RVM_RNET_RT_SWE
      #define RVM_RNET_SWE          /* Define the generic API. */
      #ifdef RVM_RNET_BR_SWE
         #undef RVM_RNET_BR_SWE     /* Undef Bridge implemetation. */
      #endif
   #endif

   // TEMPORARY: THESE SWEs MUST BE FIXED FOR RIVIERATOOL
   #ifdef RVM_DAR_SWE
      #undef RVM_DAR_SWE
   #endif
   #ifdef RVM_ETM_SWE
      #undef RVM_ETM_SWE
   #endif
   #ifdef RVM_TTY_SWE
      #undef RVM_TTY_SWE
   #endif
   #ifdef RVM_MFW_SWE
      #undef RVM_MFW_SWE
   #endif
   #ifdef RVM_SMBS_SWE
      #undef RVM_SMBS_SWE
   #endif

/* ----------------------------------------
 * Specifics for target build.
 * ---------------------------------------- */
#else
   #if (TI_PROFILER == 1) || (TI_NUC_MONITOR == 1)
      #define RVM_TI_PRF_SWE
   #endif

   #ifndef RVM_RVT_SWE
      #define RVM_RVT_SWE
   #endif

   /* If TCP/IP Bridge AND Real implementation are defined, error */
   #if ((defined RVM_TTY_SWE) && (L1_GTT == 0))
     #error "TTY entity cannot be enabled if L1_GTT is disabled (= 0)"
   #endif

   #if ((!defined RVM_TTY_SWE) && (L1_GTT == 1))
     #error "L1_GTT cannot be enabled (= 1) if TTY entity is disabled"
   #endif

   /* If TCP/IP Bridge AND Real implementation are defined, error */
   #if (defined RVM_RNET_RT_SWE) && (defined RVM_RNET_BR_SWE)
     #error "RNET RT and BR cannot be compiled together on target"
   #endif
   /* If TCP/IP Bridge OR Real implementation are defined */
   #if (defined RVM_RNET_RT_SWE) || (defined RVM_RNET_BR_SWE)
      #define RVM_RNET_SWE          /* Define the generic API. */
      #ifdef RVM_RNET_WS_SWE
         #undef RVM_RNET_WS_SWE     /* Undef Winsocket implemetation. */
      #endif
   #endif

#endif

#if (TEST==1) && (defined RVM_R2D_SWE) && (defined RVM_RGUI_SWE)
   #define RVM_RTEST_SWE
#endif

#endif /* _RV_DEFINED_SWE_H_ */