vf6xx: enable floating-point coprocessor

This commit is contained in:
Stefan Agner 2014-07-03 15:08:21 +02:00 committed by Frantisek Burian
parent c83e16926e
commit 511f16e8c7

View File

@ -33,4 +33,7 @@ static inline void pre_main(void)
/* Set Vector Table Offset to our memory based vector table */
SCB_VTOR = (uint32_t)&vector_table;
/* Enable access to Floating-Point coprocessor. */
SCB_CPACR |= SCB_CPACR_FULL * (SCB_CPACR_CP10 | SCB_CPACR_CP11);
}