Merge pull request #2123 from hierophect/stm32-flashstub-fix
Fix stm32f412zg compile warning
This commit is contained in:
commit
cf6fbcbf2d
@ -105,8 +105,7 @@ endif
|
||||
|
||||
C_DEFS += -DMCU_PACKAGE=$(MCU_PACKAGE)
|
||||
|
||||
#TODO: Add ASM Flags? -Werror
|
||||
CFLAGS += $(INC) -Wall -std=gnu11 -nostdlib $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
|
||||
CFLAGS += $(INC) -Werror -Wall -std=gnu11 -nostdlib $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
|
||||
|
||||
# Undo some warnings.
|
||||
# STM32 apparently also uses undefined preprocessor variables quite casually,
|
||||
|
@ -49,10 +49,6 @@ uint32_t supervisor_flash_get_block_count(void) {
|
||||
void supervisor_flash_flush(void) {
|
||||
}
|
||||
|
||||
static int32_t convert_block_to_flash_addr(uint32_t block) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
mp_uint_t supervisor_flash_read_blocks(uint8_t *dest, uint32_t block, uint32_t num_blocks) {
|
||||
return 0; // success
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user