Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
egonl committed Oct 22, 2023
1 parent 543368b commit f24f2fc
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/main/drivers/system_stm32g4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f24f2fc

Please sign in to comment.