/**
  @page PWR_STOP PWR STOP example
  
  @verbatim
  ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
  * @file    PWR_STOP/readme.txt 
  * @author  MCD Application Team
  * @version V1.0.0
  * @date    17-October-2014
  * @brief   Description of the PWR STOP example.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
  *
  *
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing, software 
  * distributed under the License is distributed on an "AS IS" BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *  
  ******************************************************************************
   @endverbatim

@par Example Description 

This example shows how to enters the system to STOP mode and wake-up from this
mode using EXTI0 interrupt.

In the associated software
  - the system clock is set to 84 MHz
  - the EXTI_Line0 is configured to generate interrupt on falling edge
  - the SysTick is programmed to generate an interrupt each 250 ms 
In the SysTick interrupt handler, LED3 is toggled, this is used to indicate whether
the MCU is in STOP or RUN mode.

The system enters STOP mode and will wait for Key push button is pressed. 
 - If the User button (EXTI_Line0) is the source of wakeup from STOP, LED6 is toggled.

This behavior is repeated in an infinite loop.

LEDs are used to monitor the system state as following:
 - LED3 toggling: system in RUN mode
 - LED6 toggled: system woken up from STOP using EXTI_Line0 (User push button)
 
 @note To measure the current consumption in STOP mode, please refer to 
      @subpage PWR_CurrentConsumption example.


@par Directory contents 

  - PWR_STOP/system_stm32f4xx.c   STM32F4xx system clock configuration file
  - PWR_STOP/stm32f4xx_conf.h     Library Configuration file
  - PWR_STOP/stm32f4xx_it.c       Interrupt handlers
  - PWR_STOP/stm32f4xx_it.h       Header for stm32f4xx_it.c
  - PWR_STOP/main.c               Main program
  


      
@par Hardware and Software environment 

  - This example runs on STM32F401xCxx Devices.
  
  - This example has been tested with STM32F401C-DISCO (MB1115) RevB and can be
    easily tailored to any other development board. 

  - STM32F401C-DISCO set-up
    - Use LED4, LED3 and LED6 connected respectively to PD.12, PD.13 and PD.15 pins
    - Use the user push-button connected to pin PA0 (EXTI_Line0)


@par How to use it ? 

In order to make the program work, you must do the following :

 + EWARM
    - Open the PWR_STOP.eww workspace 
    - Rebuild all files: Project->Rebuild all
    - Load project image: Project->Debug
    - Run program: Debug->Go(F5)
 
 + MDK-ARM
    - Open the PWR_STOP.uvproj project
    - Rebuild all files: Project->Rebuild all target files
    - Load project image: Debug->Start/Stop Debug Session
    - Run program: Debug->Run (F5)
    
 + TrueSTUDO
    - Open the TrueSTUDIO toolchain.
    - Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace directory.
    - Click on File->Import, select General->'Existing Projects into Workspace' and then click "Next". 
    - Browse to the TrueSTUDIO workspace directory, select the project.
    - Rebuild all project files: Select the project in the "Project explorer" 
      window then click on Project->build project menu.
    - Run program: Run->Debug (F11)
       
 * <h3><center>&copy; COPYRIGHT STMicroelectronics</center></h3>
 */
