STM32F0xx Standard Peripherals Firmware Library: stm32f0xx_lp_modes.h Source File

STM32F0xx Standard Peripherals Library

stm32f0xx_lp_modes.h
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    PWR/PWR_CurrentConsumption/stm32f0xx_lp_modes.h
00004   * @author  MCD Application Team
00005   * @version V1.4.0
00006   * @date    24-July-2014
00007   * @brief   Header for stm32f0xx_lp_modes.c module
00008   ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
00012   *
00013   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
00014   * You may not use this file except in compliance with the License.
00015   * You may obtain a copy of the License at:
00016   *
00017   *        http://www.st.com/software_license_agreement_liberty_v2
00018   *
00019   * Unless required by applicable law or agreed to in writing, software 
00020   * distributed under the License is distributed on an "AS IS" BASIS, 
00021   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00022   * See the License for the specific language governing permissions and
00023   * limitations under the License.
00024   *
00025   ******************************************************************************
00026   */ 
00027 
00028 /* Define to prevent recursive inclusion -------------------------------------*/
00029 #ifndef __STM32F0xx_LP_MODES_H
00030 #define __STM32F0xx_LP_MODES_H
00031 
00032 /* Includes ------------------------------------------------------------------*/
00033 #include "main.h"
00034 
00035 /* Exported types ------------------------------------------------------------*/
00036 /* Exported constants --------------------------------------------------------*/
00037 #if !defined (SLEEP_MODE) && !defined (STOP_MODE) && !defined (STANDBY_MODE)\
00038  && !defined (STANDBY_RTC_MODE) 
00039 /* Uncomment the corresponding line to select the STM32F0xx Low Power mode */
00040 //#define SLEEP_MODE
00041 //#define STOP_MODE
00042 //#define STANDBY_MODE
00043 #define STANDBY_RTC_MODE
00044 #endif
00045 
00046 #if !defined (SLEEP_MODE) && !defined (STOP_MODE) && !defined (STANDBY_MODE)\
00047  && !defined (STANDBY_RTC_MODE)
00048  #error "Please select first the target STM32F0xx Low Power mode to be measured (in stm32f0xx_lp_modes.h file)"
00049 #endif
00050 
00051 /* Exported macro ------------------------------------------------------------*/
00052 /* Exported functions ------------------------------------------------------- */
00053 void SleepMode_Measure(void);
00054 void StopMode_Measure(void);
00055 void StandbyMode_Measure(void);
00056 void StandbyRTCMode_Measure(void);
00057 
00058 #endif /* __STM32F0xx_LP_MODES_H */
00059 
00060 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32