]> git.sur5r.net Git - freertos/commitdiff
Place DSB instruction before WFI instruction in EFMG890F128 demo.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Jun 2013 11:15:08 +0000 (11:15 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 6 Jun 2013 11:15:08 +0000 (11:15 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1909 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Demo/CORTEX_EFMG890F128_IAR/main.c

index 505ddb66ffd025e1b24f9d1b6ce233c3e4875c55..2ebff1abd7e26e387c24c6ad5aea62d2c46fa004 100644 (file)
@@ -286,6 +286,7 @@ static void prvLowPowerMode1( void )
        SCB->SCR &= ~( 1 << SCB_SCR_SLEEPDEEP_Pos );\r
        \r
        /* Power down. */\r
        SCB->SCR &= ~( 1 << SCB_SCR_SLEEPDEEP_Pos );\r
        \r
        /* Power down. */\r
+       __DSB();\r
        __WFI();\r
 }\r
 \r
        __WFI();\r
 }\r
 \r