mirror of https://github.com/wolfSSL/wolfBoot.git
21 lines
398 B
C
21 lines
398 B
C
#include <stdint.h>
|
|
void runtime_init_bootrom_reset(void)
|
|
{
|
|
}
|
|
|
|
void runtime_init_clocks(void)
|
|
{
|
|
}
|
|
|
|
|
|
typedef void (*preinit_fn_t)(void);
|
|
|
|
void runtime_init_cpasr(void)
|
|
{
|
|
volatile uint32_t *cpasr_ns = (volatile uint32_t*) 0xE000ED88;
|
|
*cpasr_ns |= 0xFF;
|
|
}
|
|
|
|
preinit_fn_t __attribute__((section(".nonsecure_preinit_array"))) *((*nonsecure_preinit)(void)) =
|
|
{ &runtime_init_cpasr };
|