From baf608f156bb33d98affed82d292a2073ec97c85 Mon Sep 17 00:00:00 2001 From: ArdaFu Date: Fri, 25 Jul 2014 23:25:32 +0800 Subject: [PATCH] [BSP] tm4c129x: fix compile bug when turn RT_USING_LWIP 1. Resize RT_LWIP_SEG_NUM drom 8 to 12 2. modify gcc compile switch, using C99 --- bsp/tm4c129x/rtconfig.h | 4 ++-- bsp/tm4c129x/rtconfig.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/tm4c129x/rtconfig.h b/bsp/tm4c129x/rtconfig.h index 50cde4df7f..9d76c80f06 100644 --- a/bsp/tm4c129x/rtconfig.h +++ b/bsp/tm4c129x/rtconfig.h @@ -166,7 +166,7 @@ // //
-//#define RT_USING_LWIP +#define RT_USING_LWIP // #define RT_USING_LWIP141 // @@ -192,7 +192,7 @@ // // #define RT_LWIP_DHCP // -#define RT_LWIP_TCP_SEG_NUM 8 +#define RT_LWIP_TCP_SEG_NUM 12 // #define RT_LWIP_TCPTHREAD_PRIORITY 12 // diff --git a/bsp/tm4c129x/rtconfig.py b/bsp/tm4c129x/rtconfig.py index fb370aed47..93e3f3e257 100644 --- a/bsp/tm4c129x/rtconfig.py +++ b/bsp/tm4c129x/rtconfig.py @@ -45,7 +45,7 @@ if PLATFORM == 'gcc': OBJCPY = PREFIX + 'objcopy' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections' - CFLAGS = DEVICE + ' -std=gnu11 -Dgcc' + CFLAGS = DEVICE + ' -std=c99 -Dgcc' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-tm4c129x.map,-cref,-u,Reset_Handler -T tm4c_rom.ld' -- GitLab