コード例 #1
0
ファイル: test_main.cpp プロジェクト: ombre5733/weos
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();
}
コード例 #2
0
ファイル: test_main.cpp プロジェクト: kaidokert/weos
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();
}