view src/condat3/frame/config/gprsconst.h @ 695:530f71d65c20

uartfax.c: pull from Tourmaline (GTM900 RI output) In addition to the primary intent of bringing in GTM900 RI output support, pulling uartfax.c wholesale from Tourmaline also changes the initial_time argument in the two NU_Create_Timer() calls from 0 to 1. This change is required for the new version of Nucleus used in Tourmaline and Selenite (and apparently also used by TI in LoCosto), and it is harmless (no effect) for the original TCS211 version of Nucleus used in Magnetite. The new philosophical model being adopted is that Tourmaline is our new development head firmware, whereas Magnetite will now be maintained similarly to how Linux maintainers treat stable kernels: changes will be backported from Tourmaline if they are deemed appropriate for stable modem firmware.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 24 Oct 2020 17:33:10 +0000
parents c8bd5a927942
children
line wrap: on
line source

/*
+-----------------------------------------------------------------------------
|  Project :
|  Modul   :
+-----------------------------------------------------------------------------
|  Copyright 2002 Texas Instruments Berlin, AG
|                 All rights reserved.
|
|                 This file is confidential and a trade secret of Texas
|                 Instruments Berlin, AG
|                 The receipt of or possession of this file does not convey
|                 any rights to reproduce or disclose its contents or to
|                 manufacture, use, or sell anything it may describe, in
|                 whole, or in part, without the specific written consent of
|                 Texas Instruments Berlin, AG.
+-----------------------------------------------------------------------------
|  Purpose :  Constants to determine the dimensions of the frame
+-----------------------------------------------------------------------------
*/

#ifndef GPRSCONST_H
#define GPRSCONST_H
#include "chipset.cfg"
#include "swconfig.cfg"

#ifdef MAX_EVENT_GROUPS
#undef MAX_EVENT_GROUPS
#endif

#if (CHIPSET==15) && (REMU==1)
#if (LOCOSTO_LITE==1)
#define MAX_REMU_SIMULTANEOUS_TIMER      15
#define MAX_REMU_ENTITIES                15
#define MAX_REMU_OS_TASKS               15
#define MAX_REMU_SEMAPHORES              15
#define MAX_REMU_EVENT_GROUPS 15
#else
#define MAX_REMU_SIMULTANEOUS_TIMER      30
#define MAX_REMU_ENTITIES                30
#define MAX_REMU_OS_TASKS               30
#if (RELIANCE_FS==1)
#if ((DATALIGHT_NOR==1) && (DATALIGHT_NAND==1))
#define MAX_REMU_SEMAPHORES              90
#else
#define MAX_REMU_SEMAPHORES              75
#endif
#else
#define MAX_REMU_SEMAPHORES              55
#endif
#define MAX_REMU_EVENT_GROUPS 30
#endif
#define MAX_EVENT_GROUPS  		    ( MAX_REMU_ENTITIES + 5 )
#else
#define MAX_REMU_SIMULTANEOUS_TIMER      0
#define MAX_REMU_ENTITIES                0
#define MAX_REMU_OS_TASKS               0
#define MAX_REMU_SEMAPHORES              0
#define MAX_REMU_EVENT_GROUPS 0
#define MAX_EVENT_GROUPS  		   0
#endif



#ifdef BTS  /* BTU is included */
	#ifdef BTT /* BTAV is included */
	#ifdef FMS
	    #define BT_ADAPTER_ADD_ENTITIES   9
	    #define BT_ADAPTER_ADD_OS_TASKS   9
	  #define BT_ADAPTER_ADD_SEMAPHORES  10
	#else
	    #define BT_ADAPTER_ADD_ENTITIES   8
	    #define BT_ADAPTER_ADD_OS_TASKS   8
	    #define BT_ADAPTER_ADD_SEMAPHORES  9
	#endif
	#else
	  #define BT_ADAPTER_ADD_ENTITIES   6
	  #define BT_ADAPTER_ADD_OS_TASKS   6
	  #define BT_ADAPTER_ADD_SEMAPHORES  2
	#endif
#else
#define BT_ADAPTER_ADD_ENTITIES   3
#define BT_ADAPTER_ADD_OS_TASKS   3
#define BT_ADAPTER_ADD_SEMAPHORES 0
#endif



/*==== CONSTANTS ============================================================*/

#define MAX_TIMER                  231
#define MAX_SIMULTANEOUS_TIMER     (50 + MAX_REMU_SIMULTANEOUS_TIMER)


#ifdef FF_BAT /* with GDD_DIO entity */
#if(PSP_STANDALONE==0)
#define MAX_ENTITIES                (39 + MAX_REMU_ENTITIES + BT_ADAPTER_ADD_ENTITIES)
#define MAX_OS_TASKS                (33 + MAX_REMU_OS_TASKS + BT_ADAPTER_ADD_OS_TASKS)
#else
#define MAX_ENTITIES                (2 + MAX_REMU_ENTITIES + 0)
#define MAX_OS_TASKS                (2 + MAX_REMU_OS_TASKS + 0)
#endif
#define MAX_SEMAPHORES              (14+ MAX_REMU_SEMAPHORES + BT_ADAPTER_ADD_SEMAPHORES)
#else
#if(PSP_STANDALONE==0)
#define MAX_ENTITIES                (38 + MAX_REMU_ENTITIES + BT_ADAPTER_ADD_ENTITIES)
#define MAX_OS_TASKS                (32 + MAX_REMU_OS_TASKS + BT_ADAPTER_ADD_OS_TASKS)
#else
#define MAX_ENTITIES                (2 + MAX_REMU_ENTITIES + 0)
#define MAX_OS_TASKS                (2 + MAX_REMU_OS_TASKS + 0)
#endif
#define MAX_SEMAPHORES              (13 + MAX_REMU_SEMAPHORES + BT_ADAPTER_ADD_SEMAPHORES)
#endif /* FF_BAT */

#define MAX_OSISRS                   0
#define MAX_COMMUNICATIONS           MAX_OS_TASKS
#define MAX_POOL_GROUPS              7
#define MAX_MEMORY_POOLS             7

#endif /* GPRSCONST_H */