extern "C" void SystemInit(void) { System_InitializeClock(); //! \todo FPU settings should go into the peripheral description file. // Enable the FPU coprocessor. *((volatile unsigned long*)0xE000ED88) = 0xF << 20; initUart(); }
extern "C" void SystemInit(void) { System_InitializeClock(); //! \todo FPU settings should go into the peripheral description file. // Enable the FPU coprocessor. //SCB->CPACR = uint32_t(0xF) << 20; *((volatile uint32_t*)0xE000ED88) = uint32_t(0xF) << 20; // Trap on unaligned memory accesses. //SCB->CCR |= uint32_t(8); *((volatile uint32_t*)0xE000ED14) = uint32_t(8); initUart(); }