1#include <main-header.h>
4#include <function-instr.h>
5extern void *loaderapiptr;
6extern void *app_pfnVectors;
12int stm32startup(uint32_t loaderapi) {
13 loaderapiptr = (
void *)loaderapi;
16 uint32_t adr = (uint32_t)&app_pfnVectors;
18 *((uint32_t
volatile *)0xE000ED08) = adr;
20 uint32_t ex = *((uint32_t
volatile *)0xE0000024);
22 *((uint32_t
volatile *)0xE0000024) = ex | (1 << 18) | (1 << 17) | (1 << 16);
34void WindowWatchdog_IRQHandler() {
35 printf(
"Watchdog???\r\n");