comparison gsm-fw/L1/audio_include/l1audio_const.h @ 604:45bf440cc677

gsm-fw/L1/audio_include: initial preen over the imported LoCosto headers
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 28 Aug 2014 19:08:09 +0000
parents d638de8cc6b8
children
comparison
equal deleted inserted replaced
603:d638de8cc6b8 604:45bf440cc677
58 #define L1S_AUDIO_UL_ONOFF_STATE 32 // l1s_audio_ul_onoff_manager() 58 #define L1S_AUDIO_UL_ONOFF_STATE 32 // l1s_audio_ul_onoff_manager()
59 #define L1S_AUDIO_DL_ONOFF_STATE 33 // l1s_audio_dl_onoff_manager() 59 #define L1S_AUDIO_DL_ONOFF_STATE 33 // l1s_audio_dl_onoff_manager()
60 #endif 60 #endif
61 #define L1S_PCM_DOWNLOAD_STATE 34 // l1s_pcm_download_manager() 61 #define L1S_PCM_DOWNLOAD_STATE 34 // l1s_pcm_download_manager()
62 #define L1S_PCM_UPLOAD_STATE 35 // l1s_pcm_upload_manager() 62 #define L1S_PCM_UPLOAD_STATE 35 // l1s_pcm_upload_manager()
63 #define L1S_FIR_STATE 36 // l1s_fir_manager() 63 #define L1S_FIR_STATE 36 // l1s_fir_manager()
64 64
65 65
66 //---------------------------------------- 66 //----------------------------------------
67 // MCU<->DSP communication bit field. 67 // MCU<->DSP communication bit field.
68 //---------------------------------------- 68 //----------------------------------------
69 69
70 // bit in d_tch_mode for audio features 70 // bit in d_tch_mode for audio features
71 #define B_VOICE_MEMO_DTX (TRUE_L << 5) 71 #define B_VOICE_MEMO_DTX (TRUE_L << 5)
72 #if (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39) 72 #if (DSP >= 34)
73 #define B_VM_VOCODER_SELECT (TRUE_L << 6) 73 #define B_VM_VOCODER_SELECT (TRUE_L << 6)
74 #endif 74 #endif
75 75
76 // bits in d_toneskb_status 76 // bits in d_toneskb_status
77 #define B_TONE (TRUE_L << 0) // Indicate if the DSP tone task is running 77 #define B_TONE (TRUE_L << 0) // Indicate if the DSP tone task is running
394 #define AUDIO_SP_SELF_CONF 0 394 #define AUDIO_SP_SELF_CONF 0
395 #define AUDIO_SP_MIDI_CONF 1 395 #define AUDIO_SP_MIDI_CONF 1
396 #define AUDIO_SP_MP3_CONF 2 396 #define AUDIO_SP_MP3_CONF 2
397 #define AUDIO_SP_EXTAUDIO_CONF 3 397 #define AUDIO_SP_EXTAUDIO_CONF 3
398 398
399 #if (ANLG_FAM == 3) 399 #if (ANALOG == 3)
400 // sampling frequency 400 // sampling frequency
401 #define AUDIO_SP_FREQ_8 7 401 #define AUDIO_SP_FREQ_8 7
402 #define AUDIO_SP_FREQ_11 6 402 #define AUDIO_SP_FREQ_11 6
403 #define AUDIO_SP_FREQ_16 5 403 #define AUDIO_SP_FREQ_16 5
404 #define AUDIO_SP_FREQ_22 4 404 #define AUDIO_SP_FREQ_22 4
405 #define AUDIO_SP_FREQ_32 3 405 #define AUDIO_SP_FREQ_32 3
406 #define AUDIO_SP_FREQ_44 2 406 #define AUDIO_SP_FREQ_44 2
407 #define AUDIO_SP_FREQ_48 0 407 #define AUDIO_SP_FREQ_48 0
408 #endif 408 #endif
409 409
410 #if (ANLG_FAM == 11 || CODE_VERSION == SIMULATION) 410 #if (ANALOG == 11 || CODE_VERSION == SIMULATION)
411 // sampling frequency index for Triton. This would be set in the 411 // sampling frequency index for Triton. This would be set in the
412 //SRW[0:3] bits of the CTRL5 register. 412 //SRW[0:3] bits of the CTRL5 register.
413 #define AUDIO_SP_FREQ_8 0 413 #define AUDIO_SP_FREQ_8 0
414 #define AUDIO_SP_FREQ_11 1 414 #define AUDIO_SP_FREQ_11 1
415 #define AUDIO_SP_FREQ_12 2 415 #define AUDIO_SP_FREQ_12 2