From f24f2fc5aef754b7d8b6db738d0b3236cbca9165 Mon Sep 17 00:00:00 2001 From: egonl Date: Sun, 22 Oct 2023 22:26:21 +0200 Subject: [PATCH] Removed unused code --- src/main/drivers/system_stm32g4xx.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/main/drivers/system_stm32g4xx.c b/src/main/drivers/system_stm32g4xx.c index 25eba9a795..4ce955defe 100644 --- a/src/main/drivers/system_stm32g4xx.c +++ b/src/main/drivers/system_stm32g4xx.c @@ -84,32 +84,10 @@ void systemResetHard(void) NVIC_SystemReset(); } -void systemResetToBootloader(bootloaderRequestType_e requestType) -{ - switch (requestType) { - case BOOTLOADER_REQUEST_ROM: - default: - persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_BOOTLOADER_REQUEST_ROM); - - break; - } - - __disable_irq(); - NVIC_SystemReset(); -} - #define SYSMEMBOOT_VECTOR_TABLE ((uint32_t *)0x1fff0000) -#define SYSMEMBOOT_LOADER ((uint32_t *)0x1fff0000) typedef void *(*bootJumpPtr)(void); -typedef void resetHandler_t(void); - -typedef struct isrVector_s { - __I uint32_t stackEnd; - resetHandler_t *resetHandler; -} isrVector_t; - void systemJumpToBootloader(void) { //DeInit all used peripherals