From fc2467a190b06bbbca4f7348c6e952b6252c6660 Mon Sep 17 00:00:00 2001 From: zhoujie Date: Thu, 10 Dec 2015 21:47:53 +0800 Subject: [PATCH] fix keil armcc compiling report "Error: expected an expression" --- bsp/stm32f10x/rtconfig.py | 1 + bsp/stm32f10x/template.uvproj | 1 + bsp/stm32f10x/template.uvprojx | 1 + 3 files changed, 3 insertions(+) diff --git a/bsp/stm32f10x/rtconfig.py b/bsp/stm32f10x/rtconfig.py index 20a843ba40..4ebbb68aab 100644 --- a/bsp/stm32f10x/rtconfig.py +++ b/bsp/stm32f10x/rtconfig.py @@ -79,6 +79,7 @@ elif PLATFORM == 'armcc': AFLAGS = DEVICE LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-stm32.map --scatter stm32_rom.sct' + CFLAGS += ' --c99' CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' diff --git a/bsp/stm32f10x/template.uvproj b/bsp/stm32f10x/template.uvproj index 9304eff62a..acb78f6902 100644 --- a/bsp/stm32f10x/template.uvproj +++ b/bsp/stm32f10x/template.uvproj @@ -347,6 +347,7 @@ 0 0 0 + 1 diff --git a/bsp/stm32f10x/template.uvprojx b/bsp/stm32f10x/template.uvprojx index c6aff7241a..0d439a6b71 100644 --- a/bsp/stm32f10x/template.uvprojx +++ b/bsp/stm32f10x/template.uvprojx @@ -350,6 +350,7 @@ 0 0 0 + 1 -- GitLab