# HG changeset patch # User Michael Spacefalcon # Date 1409764902 0 # Node ID aed920085e5979d272ef94f01727f184c9ada84e # Parent c07f9df9f6afcd5ccaa64e707eb1fbb4578e16a6 PCM integration: pcmcode.c compiles diff -r c07f9df9f6af -r aed920085e59 gsm-fw/services/pcm/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/services/pcm/Makefile Wed Sep 03 17:21:42 2014 +0000 @@ -0,0 +1,14 @@ +CC= arm-elf-gcc +CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb +LD= arm-elf-ld + +OBJS= pcmcode.o + +HDRS= pcm.h + +all: ${OBJS} + +${OBJS}: ${HDRS} + +clean: + rm -f *.[oa] *errs diff -r c07f9df9f6af -r aed920085e59 gsm-fw/services/pcm/pcmcode.c --- a/gsm-fw/services/pcm/pcmcode.c Wed Sep 03 16:32:11 2014 +0000 +++ b/gsm-fw/services/pcm/pcmcode.c Wed Sep 03 17:21:42 2014 +0000 @@ -8,31 +8,14 @@ * ******************************************************************************/ -#ifndef TARGET - #include "board.cfg" - #include "ffs.cfg" -#endif - #include -#include "ffs/pcm.h" -#include "ffs/ffs.h" -#include "ffs/board/ffstrace.h" - -#if (TARGET == 1) - #include "sys.cfg" - #if (BOARD == 34) - #include "ffs/board/ffspcm.h" - #endif -#else - #define STD 6 - #define NULL 0 -#endif - +#include "pcm.h" +#include "../ffs/ffs.h" +#include "../ffs/ffstrace.h" extern const T_PCM_DESCRIPTION pcm_table[]; extern const UBYTE pcm_default_values[]; extern UBYTE pcm_mem []; -extern UBYTE std; /****************************************************************************** @@ -77,13 +60,6 @@ ttw(ttr(TTrInit, "pcm_init" NL)); -// Avenger 2 tri band radio -#if (BOARD==34) - std = ffs_GetBand(); -#else - std = STD; -#endif - while (pcm_table[i].identifier != NULL) { error = ffs_fread(pcm_table[i].identifier,