From 511f16e8c736cef5d42eea43400812239d792ce5 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 3 Jul 2014 15:08:21 +0200 Subject: [PATCH] vf6xx: enable floating-point coprocessor --- lib/vf6xx/vector_chipset.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vf6xx/vector_chipset.c b/lib/vf6xx/vector_chipset.c index 3a4f4070..476960c7 100644 --- a/lib/vf6xx/vector_chipset.c +++ b/lib/vf6xx/vector_chipset.c @@ -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); }