FreeCalypso > hg > freecalypso-sw
changeset 641:e60f51f747f5
PCM integration: pcmdata.c compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 03 Sep 2014 17:31:21 +0000 |
parents | aed920085e59 |
children | b039cafc8e31 |
files | gsm-fw/services/pcm/Makefile gsm-fw/services/pcm/pcmdata.c |
diffstat | 2 files changed, 7 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/services/pcm/Makefile Wed Sep 03 17:21:42 2014 +0000 +++ b/gsm-fw/services/pcm/Makefile Wed Sep 03 17:31:21 2014 +0000 @@ -2,7 +2,7 @@ CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb LD= arm-elf-ld -OBJS= pcmcode.o +OBJS= pcmcode.o pcmdata.o HDRS= pcm.h
--- a/gsm-fw/services/pcm/pcmdata.c Wed Sep 03 17:21:42 2014 +0000 +++ b/gsm-fw/services/pcm/pcmdata.c Wed Sep 03 17:31:21 2014 +0000 @@ -18,18 +18,12 @@ #define NEQ != -#ifndef TARGET - #include "ffs.cfg" -#endif +#include "../../include/config.h" +#include "../../riviera/rv/general.h" +#include "pcm.h" -#if (TARGET == 1) - #include "rv/general.h" - #include "swconfig.cfg" - #include "sys.cfg" -#endif - -#include "ffs/pcm.h" - +/* FreeCalypso configuration */ +#define STD 6 /*==== VARIABLES ==================================================*/ /* @@ -38,7 +32,7 @@ UBYTE pcm_mem [PCM_SIZE]; -UBYTE std; +UBYTE std = STD; // set treshold for initial power measurements (= -106 dBm) USHORT min_rxlev = 20; @@ -626,5 +620,3 @@ 0xF1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; - -