Skip to content

Commit

Permalink
Merge pull request #141 from grapherd/hotfix/misconfig_fpu_in_syscloc…
Browse files Browse the repository at this point in the history
…k_when_didnt_config_fpu

fix misconfig FPU in sys_clock_init
  • Loading branch information
jserv authored Feb 2, 2017
2 parents 18132eb + ca68ec7 commit d466fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/stm32-common/rcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void sys_clock_init(void)
{
volatile uint32_t startup_count, HSE_status;

#if defined(STM32F4X)
#if defined(STM32F4X) && defined(CONFIG_FPU)
/* Enable the FPU */
*SCB_CPACR |= (0xf << 20);
/* Enable floating point state preservation */
Expand Down

0 comments on commit d466fe1

Please sign in to comment.