/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Mon Dec 09 18:43:03 2013 +0200
Revision:
73:1efda918f0ba
Child:
76:824293ae5e43
Release 73 of the mbed library

Main changes:

- added support for KL46Z and NUCLEO_F103RB
- STM32 USB device support
- various bug fixes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 73:1efda918f0ba 1 /**
bogdanm 73:1efda918f0ba 2 ******************************************************************************
bogdanm 73:1efda918f0ba 3 * @file stm32f10x_pwr.h
bogdanm 73:1efda918f0ba 4 * @author MCD Application Team
bogdanm 73:1efda918f0ba 5 * @version V3.5.0
bogdanm 73:1efda918f0ba 6 * @date 11-March-2011
bogdanm 73:1efda918f0ba 7 * @brief This file contains all the functions prototypes for the PWR firmware
bogdanm 73:1efda918f0ba 8 * library.
bogdanm 73:1efda918f0ba 9 ******************************************************************************
bogdanm 73:1efda918f0ba 10 * @attention
bogdanm 73:1efda918f0ba 11 *
bogdanm 73:1efda918f0ba 12 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
bogdanm 73:1efda918f0ba 13 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
bogdanm 73:1efda918f0ba 14 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
bogdanm 73:1efda918f0ba 15 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
bogdanm 73:1efda918f0ba 16 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
bogdanm 73:1efda918f0ba 17 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
bogdanm 73:1efda918f0ba 18 *
bogdanm 73:1efda918f0ba 19 * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
bogdanm 73:1efda918f0ba 20 ******************************************************************************
bogdanm 73:1efda918f0ba 21 */
bogdanm 73:1efda918f0ba 22
bogdanm 73:1efda918f0ba 23 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 73:1efda918f0ba 24 #ifndef __STM32F10x_PWR_H
bogdanm 73:1efda918f0ba 25 #define __STM32F10x_PWR_H
bogdanm 73:1efda918f0ba 26
bogdanm 73:1efda918f0ba 27 #ifdef __cplusplus
bogdanm 73:1efda918f0ba 28 extern "C" {
bogdanm 73:1efda918f0ba 29 #endif
bogdanm 73:1efda918f0ba 30
bogdanm 73:1efda918f0ba 31 /* Includes ------------------------------------------------------------------*/
bogdanm 73:1efda918f0ba 32 #include "stm32f10x.h"
bogdanm 73:1efda918f0ba 33
bogdanm 73:1efda918f0ba 34 /** @addtogroup STM32F10x_StdPeriph_Driver
bogdanm 73:1efda918f0ba 35 * @{
bogdanm 73:1efda918f0ba 36 */
bogdanm 73:1efda918f0ba 37
bogdanm 73:1efda918f0ba 38 /** @addtogroup PWR
bogdanm 73:1efda918f0ba 39 * @{
bogdanm 73:1efda918f0ba 40 */
bogdanm 73:1efda918f0ba 41
bogdanm 73:1efda918f0ba 42 /** @defgroup PWR_Exported_Types
bogdanm 73:1efda918f0ba 43 * @{
bogdanm 73:1efda918f0ba 44 */
bogdanm 73:1efda918f0ba 45
bogdanm 73:1efda918f0ba 46 /**
bogdanm 73:1efda918f0ba 47 * @}
bogdanm 73:1efda918f0ba 48 */
bogdanm 73:1efda918f0ba 49
bogdanm 73:1efda918f0ba 50 /** @defgroup PWR_Exported_Constants
bogdanm 73:1efda918f0ba 51 * @{
bogdanm 73:1efda918f0ba 52 */
bogdanm 73:1efda918f0ba 53
bogdanm 73:1efda918f0ba 54 /** @defgroup PVD_detection_level
bogdanm 73:1efda918f0ba 55 * @{
bogdanm 73:1efda918f0ba 56 */
bogdanm 73:1efda918f0ba 57
bogdanm 73:1efda918f0ba 58 #define PWR_PVDLevel_2V2 ((uint32_t)0x00000000)
bogdanm 73:1efda918f0ba 59 #define PWR_PVDLevel_2V3 ((uint32_t)0x00000020)
bogdanm 73:1efda918f0ba 60 #define PWR_PVDLevel_2V4 ((uint32_t)0x00000040)
bogdanm 73:1efda918f0ba 61 #define PWR_PVDLevel_2V5 ((uint32_t)0x00000060)
bogdanm 73:1efda918f0ba 62 #define PWR_PVDLevel_2V6 ((uint32_t)0x00000080)
bogdanm 73:1efda918f0ba 63 #define PWR_PVDLevel_2V7 ((uint32_t)0x000000A0)
bogdanm 73:1efda918f0ba 64 #define PWR_PVDLevel_2V8 ((uint32_t)0x000000C0)
bogdanm 73:1efda918f0ba 65 #define PWR_PVDLevel_2V9 ((uint32_t)0x000000E0)
bogdanm 73:1efda918f0ba 66 #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLevel_2V2) || ((LEVEL) == PWR_PVDLevel_2V3)|| \
bogdanm 73:1efda918f0ba 67 ((LEVEL) == PWR_PVDLevel_2V4) || ((LEVEL) == PWR_PVDLevel_2V5)|| \
bogdanm 73:1efda918f0ba 68 ((LEVEL) == PWR_PVDLevel_2V6) || ((LEVEL) == PWR_PVDLevel_2V7)|| \
bogdanm 73:1efda918f0ba 69 ((LEVEL) == PWR_PVDLevel_2V8) || ((LEVEL) == PWR_PVDLevel_2V9))
bogdanm 73:1efda918f0ba 70 /**
bogdanm 73:1efda918f0ba 71 * @}
bogdanm 73:1efda918f0ba 72 */
bogdanm 73:1efda918f0ba 73
bogdanm 73:1efda918f0ba 74 /** @defgroup Regulator_state_is_STOP_mode
bogdanm 73:1efda918f0ba 75 * @{
bogdanm 73:1efda918f0ba 76 */
bogdanm 73:1efda918f0ba 77
bogdanm 73:1efda918f0ba 78 #define PWR_Regulator_ON ((uint32_t)0x00000000)
bogdanm 73:1efda918f0ba 79 #define PWR_Regulator_LowPower ((uint32_t)0x00000001)
bogdanm 73:1efda918f0ba 80 #define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_Regulator_ON) || \
bogdanm 73:1efda918f0ba 81 ((REGULATOR) == PWR_Regulator_LowPower))
bogdanm 73:1efda918f0ba 82 /**
bogdanm 73:1efda918f0ba 83 * @}
bogdanm 73:1efda918f0ba 84 */
bogdanm 73:1efda918f0ba 85
bogdanm 73:1efda918f0ba 86 /** @defgroup STOP_mode_entry
bogdanm 73:1efda918f0ba 87 * @{
bogdanm 73:1efda918f0ba 88 */
bogdanm 73:1efda918f0ba 89
bogdanm 73:1efda918f0ba 90 #define PWR_STOPEntry_WFI ((uint8_t)0x01)
bogdanm 73:1efda918f0ba 91 #define PWR_STOPEntry_WFE ((uint8_t)0x02)
bogdanm 73:1efda918f0ba 92 #define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPEntry_WFI) || ((ENTRY) == PWR_STOPEntry_WFE))
bogdanm 73:1efda918f0ba 93
bogdanm 73:1efda918f0ba 94 /**
bogdanm 73:1efda918f0ba 95 * @}
bogdanm 73:1efda918f0ba 96 */
bogdanm 73:1efda918f0ba 97
bogdanm 73:1efda918f0ba 98 /** @defgroup PWR_Flag
bogdanm 73:1efda918f0ba 99 * @{
bogdanm 73:1efda918f0ba 100 */
bogdanm 73:1efda918f0ba 101
bogdanm 73:1efda918f0ba 102 #define PWR_FLAG_WU ((uint32_t)0x00000001)
bogdanm 73:1efda918f0ba 103 #define PWR_FLAG_SB ((uint32_t)0x00000002)
bogdanm 73:1efda918f0ba 104 #define PWR_FLAG_PVDO ((uint32_t)0x00000004)
bogdanm 73:1efda918f0ba 105 #define IS_PWR_GET_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB) || \
bogdanm 73:1efda918f0ba 106 ((FLAG) == PWR_FLAG_PVDO))
bogdanm 73:1efda918f0ba 107
bogdanm 73:1efda918f0ba 108 #define IS_PWR_CLEAR_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB))
bogdanm 73:1efda918f0ba 109 /**
bogdanm 73:1efda918f0ba 110 * @}
bogdanm 73:1efda918f0ba 111 */
bogdanm 73:1efda918f0ba 112
bogdanm 73:1efda918f0ba 113 /**
bogdanm 73:1efda918f0ba 114 * @}
bogdanm 73:1efda918f0ba 115 */
bogdanm 73:1efda918f0ba 116
bogdanm 73:1efda918f0ba 117 /** @defgroup PWR_Exported_Macros
bogdanm 73:1efda918f0ba 118 * @{
bogdanm 73:1efda918f0ba 119 */
bogdanm 73:1efda918f0ba 120
bogdanm 73:1efda918f0ba 121 /**
bogdanm 73:1efda918f0ba 122 * @}
bogdanm 73:1efda918f0ba 123 */
bogdanm 73:1efda918f0ba 124
bogdanm 73:1efda918f0ba 125 /** @defgroup PWR_Exported_Functions
bogdanm 73:1efda918f0ba 126 * @{
bogdanm 73:1efda918f0ba 127 */
bogdanm 73:1efda918f0ba 128
bogdanm 73:1efda918f0ba 129 void PWR_DeInit(void);
bogdanm 73:1efda918f0ba 130 void PWR_BackupAccessCmd(FunctionalState NewState);
bogdanm 73:1efda918f0ba 131 void PWR_PVDCmd(FunctionalState NewState);
bogdanm 73:1efda918f0ba 132 void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel);
bogdanm 73:1efda918f0ba 133 void PWR_WakeUpPinCmd(FunctionalState NewState);
bogdanm 73:1efda918f0ba 134 void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry);
bogdanm 73:1efda918f0ba 135 void PWR_EnterSTANDBYMode(void);
bogdanm 73:1efda918f0ba 136 FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG);
bogdanm 73:1efda918f0ba 137 void PWR_ClearFlag(uint32_t PWR_FLAG);
bogdanm 73:1efda918f0ba 138
bogdanm 73:1efda918f0ba 139 #ifdef __cplusplus
bogdanm 73:1efda918f0ba 140 }
bogdanm 73:1efda918f0ba 141 #endif
bogdanm 73:1efda918f0ba 142
bogdanm 73:1efda918f0ba 143 #endif /* __STM32F10x_PWR_H */
bogdanm 73:1efda918f0ba 144 /**
bogdanm 73:1efda918f0ba 145 * @}
bogdanm 73:1efda918f0ba 146 */
bogdanm 73:1efda918f0ba 147
bogdanm 73:1efda918f0ba 148 /**
bogdanm 73:1efda918f0ba 149 * @}
bogdanm 73:1efda918f0ba 150 */
bogdanm 73:1efda918f0ba 151
bogdanm 73:1efda918f0ba 152 /**
bogdanm 73:1efda918f0ba 153 * @}
bogdanm 73:1efda918f0ba 154 */
bogdanm 73:1efda918f0ba 155
bogdanm 73:1efda918f0ba 156 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/