diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-01-19 08:18:25 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-01-19 08:18:25 +0000 |
commit | 0da4614441571b33783c124d6308fdf9dfd10764 (patch) | |
tree | c4dd125089267fecd37c1cb5cc9a2b91778cdedd /os | |
parent | 844c70e2e51206ffd54e563cb69eb60c9cccad1f (diff) | |
download | ChibiOS-0da4614441571b33783c124d6308fdf9dfd10764.tar.gz ChibiOS-0da4614441571b33783c124d6308fdf9dfd10764.tar.bz2 ChibiOS-0da4614441571b33783c124d6308fdf9dfd10764.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5082 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/ports/GCC/ARMCMx/crt0.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/os/ports/GCC/ARMCMx/crt0.c b/os/ports/GCC/ARMCMx/crt0.c index 2d6c016bd..acc761127 100644 --- a/os/ports/GCC/ARMCMx/crt0.c +++ b/os/ports/GCC/ARMCMx/crt0.c @@ -36,6 +36,12 @@ #define TRUE (!FALSE)
#endif
+#define SCB_CPACR *((uint32_t *)0xE000ED88U)
+#define SCB_FPCCR *((uint32_t *)0xE000EF34U)
+#define SCB_FPDSCR *((uint32_t *)0xE000EF3CU)
+#define FPCCR_ASPEN (0x1U << 31)
+#define FPCCR_LSPEN (0x1U << 30)
+
typedef void (*funcp_t)(void);
typedef funcp_t * funcpp_t;
|