summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-12-11 09:53:23 +0800
committerBernard Xiong <[email protected]>2015-12-11 09:53:23 +0800
commit74def7ed7293edbf7fb3042dd3190da6f263fca2 (patch)
treebcb6e44aa4cba2267c9079ef936269e089c3ab0a
parentd2aee2539125e2910bdd06d7931ee66ffbc6359d (diff)
parentfc2467a190b06bbbca4f7348c6e952b6252c6660 (diff)
Merge pull request #596 from zhj2232006/master
fix issue #572, keil armcc compiling report "Error: expected an expression"
-rw-r--r--bsp/stm32f10x/rtconfig.py1
-rw-r--r--bsp/stm32f10x/template.uvproj1
-rw-r--r--bsp/stm32f10x/template.uvprojx1
3 files changed, 3 insertions, 0 deletions
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 @@
<wLevel>0</wLevel>
<uThumb>0</uThumb>
<uSurpInc>0</uSurpInc>
+ <uC99>1</uC99>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
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 @@
<wLevel>0</wLevel>
<uThumb>0</uThumb>
<uSurpInc>0</uSurpInc>
+ <uC99>1</uC99>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>