FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/services/pcm/pcmdata.c @ 641:e60f51f747f5
PCM integration: pcmdata.c compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 03 Sep 2014 17:31:21 +0000 |
parents | 0b5f226bfdf4 |
children | c83d3346d4b9 |
comparison
equal
deleted
inserted
replaced
640:aed920085e59 | 641:e60f51f747f5 |
---|---|
16 | 16 |
17 #define __STANDARD_H__ /* Avoid to define UBYTE, UINT16 and UINT32. */ | 17 #define __STANDARD_H__ /* Avoid to define UBYTE, UINT16 and UINT32. */ |
18 | 18 |
19 #define NEQ != | 19 #define NEQ != |
20 | 20 |
21 #ifndef TARGET | 21 #include "../../include/config.h" |
22 #include "ffs.cfg" | 22 #include "../../riviera/rv/general.h" |
23 #endif | 23 #include "pcm.h" |
24 | 24 |
25 #if (TARGET == 1) | 25 /* FreeCalypso configuration */ |
26 #include "rv/general.h" | 26 #define STD 6 |
27 #include "swconfig.cfg" | |
28 #include "sys.cfg" | |
29 #endif | |
30 | |
31 #include "ffs/pcm.h" | |
32 | |
33 | 27 |
34 /*==== VARIABLES ==================================================*/ | 28 /*==== VARIABLES ==================================================*/ |
35 /* | 29 /* |
36 * RAM for the copy of PCM data | 30 * RAM for the copy of PCM data |
37 */ | 31 */ |
38 | 32 |
39 UBYTE pcm_mem [PCM_SIZE]; | 33 UBYTE pcm_mem [PCM_SIZE]; |
40 | 34 |
41 UBYTE std; | 35 UBYTE std = STD; |
42 // set treshold for initial power measurements (= -106 dBm) | 36 // set treshold for initial power measurements (= -106 dBm) |
43 USHORT min_rxlev = 20; | 37 USHORT min_rxlev = 20; |
44 | 38 |
45 | 39 |
46 #define START_MSCAP 0 | 40 #define START_MSCAP 0 |
624 ********************************************************************/ | 618 ********************************************************************/ |
625 0x00, | 619 0x00, |
626 0xF1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF | 620 0xF1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF |
627 | 621 |
628 }; | 622 }; |
629 | |
630 |