Enable C99 Mode!

This commit is contained in:
but0n 2016-10-13 21:40:35 +08:00
parent c840cb64c8
commit 3befe78c8d
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# general Makefile
# make OptLIB=0 OptSRC=0 all tshow
# make OptLIB=0 OptSRC=0 all tshow
include Makefile.common
LDFLAGS=$(COMMONFLAGS) -fno-exceptions -ffunction-sections -fdata-sections -L$(LIBDIR) -nostartfiles -Wl,--gc-sections,-Tlinker.ld

View File

@ -56,7 +56,7 @@ INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32F10x/Include
INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32F10x/Source/Templates
INCLUDE+=-I$(STMLIB)/STM32F10x_StdPeriph_Driver/inc
INCLUDE+=-I$(STMLIB)/STM32_USB-FS-Device_Driver/inc
COMMONFLAGS=-g -mcpu=cortex-m3 -mthumb
COMMONFLAGS=-g -mcpu=cortex-m3 -mthumb -std=c99
COMMONFLAGSlib=$(COMMONFLAGS)
#Commands for general Makefile and src Makefile
ifeq ($(OptSRC),0)

View File

@ -86,7 +86,7 @@ unsigned char uart_Float2Char(float value) {
i++;
}
i--;
for(j = 0; j < i; j++) {
for(unsigned char j = 0; j < i; j++) {
temp = array[j];
array[j] = array[i-j];
array[i-j] = temp;