From e6e5ef09f5cf35bf463ee3e94a0842f221d423b9 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 28 Sep 2009 17:15:51 +0000 Subject: [PATCH] Updated for use with latest Yagarto release. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@857 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/ARM7_AT91FR40008_GCC/Makefile | 7 +++++-- Demo/ARM7_AT91FR40008_GCC/serial/serial.c | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Demo/ARM7_AT91FR40008_GCC/Makefile b/Demo/ARM7_AT91FR40008_GCC/Makefile index 5807dd9fe..da69cd1a4 100644 --- a/Demo/ARM7_AT91FR40008_GCC/Makefile +++ b/Demo/ARM7_AT91FR40008_GCC/Makefile @@ -53,9 +53,10 @@ CRT0=boot.s # # CFLAGS common to both the THUMB and ARM mode builds # -CFLAGS=-Wall -D $(RUN_MODE) -D GCC_AT91FR40008 -I. -I../../Source/include \ +CFLAGS=-Wall -Wextra -D $(RUN_MODE) -D GCC_AT91FR40008 -I. -I../../Source/include \ -I../Common/include $(DEBUG) -mcpu=arm7tdmi -T$(LDSCRIPT) \ - -Wcast-align $(OPTIM) -fomit-frame-pointer -fno-strict-aliasing + -Wcast-align $(OPTIM) -fomit-frame-pointer -fno-strict-aliasing \ + -fno-dwarf2-cfi-asm ifeq ($(USE_THUMB_MODE),YES) CFLAGS += -mthumb-interwork -D THUMB_INTERWORK @@ -113,4 +114,6 @@ $(ARM_OBJ) : %.o : %.c $(LDSCRIPT) Makefile clean : touch Makefile + rm $(ARM_OBJ) + rm $(THUMB_OBJ) diff --git a/Demo/ARM7_AT91FR40008_GCC/serial/serial.c b/Demo/ARM7_AT91FR40008_GCC/serial/serial.c index 39aae0fff..2940f6edb 100644 --- a/Demo/ARM7_AT91FR40008_GCC/serial/serial.c +++ b/Demo/ARM7_AT91FR40008_GCC/serial/serial.c @@ -206,6 +206,7 @@ signed portCHAR *pxNext; /* The port handle is not required as this driver only supports UART0. */ ( void ) pxPort; + ( void ) usStringLength; /* Send each character in the string, one at a time. */ pxNext = ( signed portCHAR * ) pcString; @@ -219,6 +220,8 @@ signed portCHAR *pxNext; signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed portCHAR cOutChar, portTickType xBlockTime ) { + ( void ) pxPort; + /* Place the character in the queue of characters to be transmitted. */ if( xQueueSend( xCharsForTx, &cOutChar, xBlockTime ) != pdPASS ) { @@ -238,6 +241,7 @@ signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed portCHAR cOut void vSerialClose( xComPortHandle xPort ) { /* Not supported as not required by the demo application. */ + ( void ) xPort; } /*-----------------------------------------------------------*/ -- 2.39.2