# HG changeset patch # User Michael Spacefalcon # Date 1425772547 0 # Node ID f54080301c98031fd37502783423069861c9837a # Parent ac329f4627ac16dfedb843ed39ae4ccc43afe02c UART protocol stack entity compiles diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/Makefile --- a/gsm-fw/g23m-aci/uart/Makefile Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/Makefile Sat Mar 07 23:55:47 2015 +0000 @@ -1,5 +1,21 @@ -# stub Makefile, to be filled out -all: +CC= arm-elf-gcc +LD= arm-elf-ld + +CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb +CPPFLAGS=-I. -I../../include -I../../include/condat -I../../gpf/inc \ + -I../../cdginc -DDTILIB + +OBJS= uart_drxf.o uart_drxp.o uart_drxs.o \ + uart_dtxf.o uart_dtxp.o uart_dtxs.o \ + uart_kerf.o uart_kerp.o uart_kers.o uart_pei.o \ + uart_rtf.o uart_rtp.o uart_rts.o \ + uart_rxf.o uart_rxp.o uart_rxs.o \ + uart_txf.o uart_txp.o uart_txs.o + +all: xipcode.o + +xipcode.o: ${OBJS} + ${LD} -r -o $@ ${OBJS} clean: rm -f *.[oa] *.out *errs diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_drxf.c --- a/gsm-fw/g23m-aci/uart/uart_drxf.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_drxf.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_DRXF_C #endif /* !UART_DRXF_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -45,8 +49,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_drxp.c --- a/gsm-fw/g23m-aci/uart/uart_drxp.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_drxp.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_DRXP_C #endif /* !UART_DRXP_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -45,8 +49,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_drxs.c --- a/gsm-fw/g23m-aci/uart/uart_drxs.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_drxs.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_DRXS_C #endif /* !UART_DRXS_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -47,8 +51,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_dtxf.c --- a/gsm-fw/g23m-aci/uart/uart_dtxf.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_dtxf.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_DTXF_C #endif /* !UART_DTXF_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -45,8 +49,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_dtxp.c --- a/gsm-fw/g23m-aci/uart/uart_dtxp.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_dtxp.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_DTXP_C #endif /* !UART_DTXP_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -47,8 +51,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_dtxs.c --- a/gsm-fw/g23m-aci/uart/uart_dtxs.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_dtxs.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_DTXS_C #endif /* !UART_DTXS_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -48,8 +52,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_kerf.c --- a/gsm-fw/g23m-aci/uart/uart_kerf.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_kerf.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_KERF_C #endif /* !UART_KERF_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /* @@ -54,8 +58,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_kerp.c --- a/gsm-fw/g23m-aci/uart/uart_kerp.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_kerp.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_KERP_C #endif /* !UART_KERP_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -47,8 +51,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_kers.c --- a/gsm-fw/g23m-aci/uart/uart_kers.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_kers.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_KERS_C #endif /* !UART_KERS_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /* @@ -50,8 +54,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_pei.c --- a/gsm-fw/g23m-aci/uart/uart_pei.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_pei.c Sat Mar 07 23:55:47 2015 +0000 @@ -32,6 +32,10 @@ #define UART_PEI_C +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -62,8 +66,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_rtf.c --- a/gsm-fw/g23m-aci/uart/uart_rtf.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_rtf.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_RTF_C #endif /* !UART_RTF_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -47,8 +51,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_rtp.c --- a/gsm-fw/g23m-aci/uart/uart_rtp.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_rtp.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_RTP_C #endif /* !UART_RTP_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -51,8 +55,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_rts.c --- a/gsm-fw/g23m-aci/uart/uart_rts.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_rts.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_RTS_C #endif /* !UART_RTS_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART /*==== INCLUDES =============================================================*/ @@ -51,8 +55,8 @@ #include "gsi.h" /* to get definitions of serial driver */ #else /* FF_MULTI_PORT */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_rxf.c --- a/gsm-fw/g23m-aci/uart/uart_rxf.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_rxf.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_RXF_C #endif /* !UART_RXF_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART #ifndef FF_MULTI_PORT @@ -45,8 +49,8 @@ #endif /* DTILIB */ #include "pei.h" /* to get PEI interface */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_rxp.c --- a/gsm-fw/g23m-aci/uart/uart_rxp.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_rxp.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_RXP_C #endif /* !UART_RXP_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART #ifndef FF_MULTI_PORT @@ -43,8 +47,8 @@ #include "dti.h" /* to get dti lib */ #include "pei.h" /* to get PEI interfac */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_rxs.c --- a/gsm-fw/g23m-aci/uart/uart_rxs.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_rxs.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_RXS_C #endif /* !UART_RXS_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART #ifndef FF_MULTI_PORT @@ -45,8 +49,8 @@ #endif /* DTILIB */ #include "pei.h" /* to get PEI interface */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_txf.c --- a/gsm-fw/g23m-aci/uart/uart_txf.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_txf.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_TXF_C #endif /* !UART_TXF_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART #ifndef FF_MULTI_PORT @@ -45,8 +49,8 @@ #endif /* DTILIB */ #include "pei.h" /* to get PEI interface */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_txp.c --- a/gsm-fw/g23m-aci/uart/uart_txp.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_txp.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_TXP_C #endif /* !UART_TXP_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART #ifndef FF_MULTI_PORT @@ -45,8 +49,8 @@ #endif /* DTILIB */ #include "pei.h" /* to get PEI interface */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */ diff -r ac329f4627ac -r f54080301c98 gsm-fw/g23m-aci/uart/uart_txs.c --- a/gsm-fw/g23m-aci/uart/uart_txs.c Sat Mar 07 23:00:01 2015 +0000 +++ b/gsm-fw/g23m-aci/uart/uart_txs.c Sat Mar 07 23:55:47 2015 +0000 @@ -24,6 +24,10 @@ #define UART_TXS_C #endif /* !UART_TXS_C */ +#include "config.h" +#include "fixedconf.h" +#include "condat-features.h" + #define ENTITY_UART #ifndef FF_MULTI_PORT @@ -45,8 +49,8 @@ #endif /* DTILIB */ #include "pei.h" /* to get PEI interface */ #ifdef _TARGET_ -#include "uart/serialswitch.h" -#include "uart/traceswitch.h" +#include "../../serial/serialswitch.h" +#include "../../serial/traceswitch.h" #else /* _TARGET_ */ #include "serial_dat.h" /* to get definitions of serial driver */ #endif /* _TARGET_ */