changeset 640:aed920085e59

PCM integration: pcmcode.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 03 Sep 2014 17:21:42 +0000
parents c07f9df9f6af
children e60f51f747f5
files gsm-fw/services/pcm/Makefile gsm-fw/services/pcm/pcmcode.c
diffstat 2 files changed, 17 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- /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
--- 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 <string.h>
-#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,