Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2014-07-03 17:08:21 +0400
committerFrantisek Burian <BuFran@seznam.cz>2014-10-15 21:31:02 +0400
commit511f16e8c736cef5d42eea43400812239d792ce5 (patch)
tree3277d753bab2cf16bce4fb92504fdce0f10ddf2c
parentc83e16926e039c664ae296b1235cf26fedf6e55f (diff)
vf6xx: enable floating-point coprocessor
-rw-r--r--lib/vf6xx/vector_chipset.c3
1 files changed, 3 insertions, 0 deletions
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);
}