annotate gsm-fw/L1/audio_include/l1audio_macro.h @ 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 57ad8f4d5cb5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
519
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 /************* Revision Controle System Header *************
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 * GSM Layer 1 software
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 * L1AUDIO_CONST.H
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 *
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 * Filename l1audio_macro.h
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 * Copyright 2003 (C) Texas Instruments
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 *
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 ************* Revision Controle System Header *************/
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 #if (AUDIO_TASK == 1)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 /************************************************************/
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 /* Macros to obtain a value put among a register */
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 /************************************************************/
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 #define Field(value, mask, shift) (((value) & (mask)) >> shift)
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18
57ad8f4d5cb5 L1: audio and tm header files imported from Leonardo semi-src
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 #endif // AUDIO_TASK