turn on optimization

This commit is contained in:
Matthew Kennedy 2020-12-02 21:10:53 -08:00
parent a318bedcfe
commit 362323e9ba
2 changed files with 3 additions and 7 deletions

View File

@ -5,7 +5,7 @@
# Compiler options here. # Compiler options here.
ifeq ($(USE_OPT),) ifeq ($(USE_OPT),)
USE_OPT = -Og -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant USE_OPT = -Os -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant
endif endif
# C specific options here (added to USE_OPT). # C specific options here (added to USE_OPT).

View File

@ -8,11 +8,6 @@ extern uint32_t __appflash_start__;
extern uint32_t __ram_vectors_start__; extern uint32_t __ram_vectors_start__;
extern int __ram_vectors_size__; extern int __ram_vectors_size__;
__attribute__((noreturn))
void jump_to(uint32_t address) {
__asm__ __volatile__ ("bx r0");
}
__attribute__((noreturn)) __attribute__((noreturn))
void boot_app() { void boot_app() {
// Goodbye, ChibiOS // Goodbye, ChibiOS
@ -37,7 +32,8 @@ void boot_app() {
//uint32_t app_msp = appLocation[0]; //uint32_t app_msp = appLocation[0];
//__set_MSP(app_msp); //__set_MSP(app_msp);
jump_to(reset_vector); typedef void (*ResetVectorFunction)(void);
((ResetVectorFunction)reset_vector)();
} }
/* /*