Skip to content

Commit

Permalink
minimal/Makefile: Change C standard from gnu99 to c99.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Mar 23, 2017
1 parent 4afa782 commit 92cd000
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions minimal/Makefile
Expand Up @@ -22,9 +22,9 @@ ifeq ($(CROSS), 1)
DFU = ../tools/dfu.py
PYDFU = ../tools/pydfu.py
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
CFLAGS = $(INC) -Wall -Werror -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
CFLAGS = $(INC) -Wall -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
else
CFLAGS = -m32 $(INC) -Wall -Werror -std=gnu99 $(COPT)
CFLAGS = -m32 $(INC) -Wall -Werror -std=c99 $(COPT)
endif

#Debugging/Optimization
Expand Down
2 changes: 1 addition & 1 deletion minimal/main.c
Expand Up @@ -106,7 +106,7 @@ extern uint32_t _estack, _sidata, _sdata, _edata, _sbss, _ebss;
void Reset_Handler(void) __attribute__((naked));
void Reset_Handler(void) {
// set stack pointer
asm volatile ("ldr sp, =_estack");
__asm volatile ("ldr sp, =_estack");
// copy .data section from flash to RAM
for (uint32_t *src = &_sidata, *dest = &_sdata; dest < &_edata;) {
*dest++ = *src++;
Expand Down

0 comments on commit 92cd000

Please sign in to comment.