mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
Enable C99 Mode!
This commit is contained in:
parent
c840cb64c8
commit
3befe78c8d
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
# general Makefile
|
# general Makefile
|
||||||
# make OptLIB=0 OptSRC=0 all tshow
|
# make OptLIB=0 OptSRC=0 all tshow
|
||||||
include Makefile.common
|
include Makefile.common
|
||||||
LDFLAGS=$(COMMONFLAGS) -fno-exceptions -ffunction-sections -fdata-sections -L$(LIBDIR) -nostartfiles -Wl,--gc-sections,-Tlinker.ld
|
LDFLAGS=$(COMMONFLAGS) -fno-exceptions -ffunction-sections -fdata-sections -L$(LIBDIR) -nostartfiles -Wl,--gc-sections,-Tlinker.ld
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32F10x/Include
|
|||||||
INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32F10x/Source/Templates
|
INCLUDE+=-I$(STMLIB)/CMSIS/Device/ST/STM32F10x/Source/Templates
|
||||||
INCLUDE+=-I$(STMLIB)/STM32F10x_StdPeriph_Driver/inc
|
INCLUDE+=-I$(STMLIB)/STM32F10x_StdPeriph_Driver/inc
|
||||||
INCLUDE+=-I$(STMLIB)/STM32_USB-FS-Device_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)
|
COMMONFLAGSlib=$(COMMONFLAGS)
|
||||||
#Commands for general Makefile and src Makefile
|
#Commands for general Makefile and src Makefile
|
||||||
ifeq ($(OptSRC),0)
|
ifeq ($(OptSRC),0)
|
||||||
|
@ -86,7 +86,7 @@ unsigned char uart_Float2Char(float value) {
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
i--;
|
i--;
|
||||||
for(j = 0; j < i; j++) {
|
for(unsigned char j = 0; j < i; j++) {
|
||||||
temp = array[j];
|
temp = array[j];
|
||||||
array[j] = array[i-j];
|
array[j] = array[i-j];
|
||||||
array[i-j] = temp;
|
array[i-j] = temp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user