view gsm-fw/L1/include/l1_pwmgr.h @ 884:353daaa6014d

gsm-fw/gpf/conf/gsmcomp.c: increased max partition in the voice-only config The code we got from TCS211 had the maximum prim pool partition size set to 900 bytes in the voice-only config (no FAX_AND_DATA, no GPRS) and to 1600 bytes in every other config. As it turns out, this "minimized" config breaks when the AT command interface is used with %CPI enabled, as the responsible code in ATI does an ACI_MALLOC of 1012 bytes. TI may have considered this case to be unsupported usage (perhaps they didn't care about the combination of a voice-only PS with AT command control), but we do want this use case to work without crashing. Solution: I made the largest prim pool the same as it is with FAX_AND_DATA: 3 partitions of 1600 bytes.
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sat, 27 Jun 2015 07:31:30 +0000
parents 976aeaa2e6e1
children
line wrap: on
line source

/*
 * This header file appears in the LoCosto version, but not in Leonardo.
 * The version of this file in the LoCosto source was full of LoCosto
 * specifics, so originally I planned on omitting it in FreeCalypso.
 * However, some of the C modules make use of some of the definitions
 * here no matter what CHIPSET, so I'm including a stripped-down version
 * that has all LoCosto-isms removed, but retains the needed definitions.
 */

#ifndef __L1_PWMGR_H__
#define __L1_PWMGR_H__

  #define FAIL_SLEEP_PERIPH_CHECK   1 /* When initial Check_Peripheral_App */
  #define FAIL_SLEEP_OSTIMERGAUGE   2 /* When checking for Osload, HWtimer or min_time_gauging */
  #define FAIL_SLEEP_PERIPH_SLEEP   3 /* When the peripherals are put to sleep */
  #define FAIL_SLEEP_L1SYNCH        4 /* Failed at l1s_synch level itself */

  #define FAIL_SLEEP_DUE_TO_OSLOAD  0
  #define FAIL_SLEEP_DUE_TO_HWTIMER 1
  #define FAIL_SLEEP_DUE_TO_MINTIMEGAUGING 2

  #define L1_PWMGR_APP_OFFSET    0x80

  typedef struct
  {
    UWORD8  fail_id;
    UWORD8  fail_ret_val;
  }T_PWMGR_DEBUG;

#endif