IAR CM4 FPU support verified.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3667 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2011-12-28 08:40:46 +00:00
parent c7ef1b6263
commit 9faabcc2d2
3 changed files with 3 additions and 8 deletions

View File

@ -116,8 +116,6 @@ void _port_init(void) {
#if CORTEX_USE_FPU #if CORTEX_USE_FPU
{ {
uint32_t reg;
/* Initializing the FPU context save in lazy mode.*/ /* Initializing the FPU context save in lazy mode.*/
SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN; SCB_FPCCR = FPCCR_ASPEN | FPCCR_LSPEN;
@ -125,7 +123,7 @@ void _port_init(void) {
SCB_CPACR |= 0x00F00000; SCB_CPACR |= 0x00F00000;
/* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/ /* Enables FPU context save/restore on exception entry/exit (FPCA bit).*/
__set_control(__get_control() | 4); __set_CONTROL(__get_CONTROL() | 4);
/* FPSCR and FPDSCR initially zero.*/ /* FPSCR and FPDSCR initially zero.*/
__set_FPSCR(0); __set_FPSCR(0);

View File

@ -84,10 +84,8 @@
the duplicated instances under the GCC, IAR and Keil ports. Function names the duplicated instances under the GCC, IAR and Keil ports. Function names
prefixes changed from "NVIC" to "nvic" because style conventions. prefixes changed from "NVIC" to "nvic" because style conventions.
- NEW: Added voltage regulator initialization to the STM32F4xx HAL. - NEW: Added voltage regulator initialization to the STM32F4xx HAL.
- NEW: Modified the STM32F4-Discovery demo to put critical kernel data - NEW: Added a linker script that demonstrates how to put stacks and other
structures and stacks in the CCM RAM instead normal RAM. It is done using critical structures in the CCM RAM instead normal RAM.
a special .ld file that can be customized to decide how to allocate data
in the various RAM sections.
- NEW: Added experimental support for the Cortex-M4 FPU (default when the - NEW: Added experimental support for the Cortex-M4 FPU (default when the
FPU is present). FPU is present).
- NEW: Improved I2C driver model and STM32 implementation by Barthess. - NEW: Improved I2C driver model and STM32 implementation by Barthess.

View File

@ -301,5 +301,4 @@ int main(void) {
while (TRUE) { while (TRUE) {
chThdSleepMilliseconds(5000); chThdSleepMilliseconds(5000);
} }
return 0;
} }