Skip to content

Commit 92cd000

Browse files
committed
minimal/Makefile: Change C standard from gnu99 to c99.
1 parent 4afa782 commit 92cd000

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

minimal/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ ifeq ($(CROSS), 1)
2222
DFU = ../tools/dfu.py
2323
PYDFU = ../tools/pydfu.py
2424
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
25-
CFLAGS = $(INC) -Wall -Werror -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
25+
CFLAGS = $(INC) -Wall -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
2626
else
27-
CFLAGS = -m32 $(INC) -Wall -Werror -std=gnu99 $(COPT)
27+
CFLAGS = -m32 $(INC) -Wall -Werror -std=c99 $(COPT)
2828
endif
2929

3030
#Debugging/Optimization

minimal/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ extern uint32_t _estack, _sidata, _sdata, _edata, _sbss, _ebss;
106106
void Reset_Handler(void) __attribute__((naked));
107107
void Reset_Handler(void) {
108108
// set stack pointer
109-
asm volatile ("ldr sp, =_estack");
109+
__asm volatile ("ldr sp, =_estack");
110110
// copy .data section from flash to RAM
111111
for (uint32_t *src = &_sidata, *dest = &_sdata; dest < &_edata;) {
112112
*dest++ = *src++;

0 commit comments

Comments
 (0)