view gsm-fw/L1/cfile/dummy_tch_data.c @ 923:10b4bed10192

gsm-fw/L1: fix for the DSP patch corruption bug The L1 code we got from the LoCosto fw contains a feature for DSP CPU load measurement. This feature is a LoCosto-ism, i.e., not applicable to earlier DBB chips (Calypso) with their respective earlier DSP ROMs. Most of the code dealing with that feature is conditionalized as #if (DSP >= 38), but one spot was missed, and the MCU code was writing into an API word dealing with this feature. In TCS211 this DSP API word happens to be used by the DSP code patch, hence that write was corrupting the patched DSP code.
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 19 Oct 2015 17:13:56 +0000
parents 5f93a9a8f9a0
children
line wrap: on
line source

/*
 * [rt]x_tch_data() calls appear to be some old API for passing CSD payloads
 * between L1 and the higher layers.  If this API was ever used at all,
 * it is so old that even the TSM30 code does not use it; the new API that
 * took its place is dll_data_[du]l().  However, the code in l1_cmplx.c
 * still calls the old API, thus stub functions are needed.  TSM30 and
 * Leonardo versions have these stubs in the dl1_com module, but that
 * module no longer exists in our version - see l1_isr_glue.c for the
 * explanation.  The LoCosto version has a stub (in sys_dummy.c) only
 * for tx_tch_data() - the other function gets called only when IDS
 * is not enabled.
 *
 * This module provides the necessary stubs for our version.
 */
 
void rx_tch_data()
{
  return;
}
 
char *tx_tch_data()
{
  return(0);
}