29#pragma clang diagnostic ignored "-Wempty-translation-unit"
34#if defined(__ARM_EABI__)
39#include <cmsis_device.h>
43#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)
44extern unsigned int __vectors_start;
65void __attribute__((weak))
71#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)
75 SCB->VTOR = (uint32_t) (&__vectors_start);
86#if defined(OS_INCLUDE_STARTUP_INIT_FP) || defined (__ARM_FP)
96 SCB->CPACR |= (0xF << 20);
99 FPU->FPCCR |= FPU_FPCCR_ASPEN_Msk | FPU_FPCCR_LSPEN_Msk;
103#if defined(OS_DEBUG_SEMIHOSTING_FAULTS)
105 SCB->SHCSR |= SCB_SHCSR_USGFAULTENA_Msk;
111#if 0 || defined(__DOXYGEN__)
125void __attribute__((weak))
130 SystemCoreClockUpdate ();
void os_startup_initialize_hardware_early(void)
Initialise hardware early.
void os_startup_initialize_hardware(void)
Initialise hardware.