/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
TARGET_NUCLEO_F103RB/stm32f10x_bkp.h@73:1efda918f0ba, 2013-12-09 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 73:1efda918f0ba | 1 | /** |
bogdanm | 73:1efda918f0ba | 2 | ****************************************************************************** |
bogdanm | 73:1efda918f0ba | 3 | * @file stm32f10x_bkp.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 BKP 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>© 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_BKP_H |
bogdanm | 73:1efda918f0ba | 25 | #define __STM32F10x_BKP_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 BKP |
bogdanm | 73:1efda918f0ba | 39 | * @{ |
bogdanm | 73:1efda918f0ba | 40 | */ |
bogdanm | 73:1efda918f0ba | 41 | |
bogdanm | 73:1efda918f0ba | 42 | /** @defgroup BKP_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 BKP_Exported_Constants |
bogdanm | 73:1efda918f0ba | 51 | * @{ |
bogdanm | 73:1efda918f0ba | 52 | */ |
bogdanm | 73:1efda918f0ba | 53 | |
bogdanm | 73:1efda918f0ba | 54 | /** @defgroup Tamper_Pin_active_level |
bogdanm | 73:1efda918f0ba | 55 | * @{ |
bogdanm | 73:1efda918f0ba | 56 | */ |
bogdanm | 73:1efda918f0ba | 57 | |
bogdanm | 73:1efda918f0ba | 58 | #define BKP_TamperPinLevel_High ((uint16_t)0x0000) |
bogdanm | 73:1efda918f0ba | 59 | #define BKP_TamperPinLevel_Low ((uint16_t)0x0001) |
bogdanm | 73:1efda918f0ba | 60 | #define IS_BKP_TAMPER_PIN_LEVEL(LEVEL) (((LEVEL) == BKP_TamperPinLevel_High) || \ |
bogdanm | 73:1efda918f0ba | 61 | ((LEVEL) == BKP_TamperPinLevel_Low)) |
bogdanm | 73:1efda918f0ba | 62 | /** |
bogdanm | 73:1efda918f0ba | 63 | * @} |
bogdanm | 73:1efda918f0ba | 64 | */ |
bogdanm | 73:1efda918f0ba | 65 | |
bogdanm | 73:1efda918f0ba | 66 | /** @defgroup RTC_output_source_to_output_on_the_Tamper_pin |
bogdanm | 73:1efda918f0ba | 67 | * @{ |
bogdanm | 73:1efda918f0ba | 68 | */ |
bogdanm | 73:1efda918f0ba | 69 | |
bogdanm | 73:1efda918f0ba | 70 | #define BKP_RTCOutputSource_None ((uint16_t)0x0000) |
bogdanm | 73:1efda918f0ba | 71 | #define BKP_RTCOutputSource_CalibClock ((uint16_t)0x0080) |
bogdanm | 73:1efda918f0ba | 72 | #define BKP_RTCOutputSource_Alarm ((uint16_t)0x0100) |
bogdanm | 73:1efda918f0ba | 73 | #define BKP_RTCOutputSource_Second ((uint16_t)0x0300) |
bogdanm | 73:1efda918f0ba | 74 | #define IS_BKP_RTC_OUTPUT_SOURCE(SOURCE) (((SOURCE) == BKP_RTCOutputSource_None) || \ |
bogdanm | 73:1efda918f0ba | 75 | ((SOURCE) == BKP_RTCOutputSource_CalibClock) || \ |
bogdanm | 73:1efda918f0ba | 76 | ((SOURCE) == BKP_RTCOutputSource_Alarm) || \ |
bogdanm | 73:1efda918f0ba | 77 | ((SOURCE) == BKP_RTCOutputSource_Second)) |
bogdanm | 73:1efda918f0ba | 78 | /** |
bogdanm | 73:1efda918f0ba | 79 | * @} |
bogdanm | 73:1efda918f0ba | 80 | */ |
bogdanm | 73:1efda918f0ba | 81 | |
bogdanm | 73:1efda918f0ba | 82 | /** @defgroup Data_Backup_Register |
bogdanm | 73:1efda918f0ba | 83 | * @{ |
bogdanm | 73:1efda918f0ba | 84 | */ |
bogdanm | 73:1efda918f0ba | 85 | |
bogdanm | 73:1efda918f0ba | 86 | #define BKP_DR1 ((uint16_t)0x0004) |
bogdanm | 73:1efda918f0ba | 87 | #define BKP_DR2 ((uint16_t)0x0008) |
bogdanm | 73:1efda918f0ba | 88 | #define BKP_DR3 ((uint16_t)0x000C) |
bogdanm | 73:1efda918f0ba | 89 | #define BKP_DR4 ((uint16_t)0x0010) |
bogdanm | 73:1efda918f0ba | 90 | #define BKP_DR5 ((uint16_t)0x0014) |
bogdanm | 73:1efda918f0ba | 91 | #define BKP_DR6 ((uint16_t)0x0018) |
bogdanm | 73:1efda918f0ba | 92 | #define BKP_DR7 ((uint16_t)0x001C) |
bogdanm | 73:1efda918f0ba | 93 | #define BKP_DR8 ((uint16_t)0x0020) |
bogdanm | 73:1efda918f0ba | 94 | #define BKP_DR9 ((uint16_t)0x0024) |
bogdanm | 73:1efda918f0ba | 95 | #define BKP_DR10 ((uint16_t)0x0028) |
bogdanm | 73:1efda918f0ba | 96 | #define BKP_DR11 ((uint16_t)0x0040) |
bogdanm | 73:1efda918f0ba | 97 | #define BKP_DR12 ((uint16_t)0x0044) |
bogdanm | 73:1efda918f0ba | 98 | #define BKP_DR13 ((uint16_t)0x0048) |
bogdanm | 73:1efda918f0ba | 99 | #define BKP_DR14 ((uint16_t)0x004C) |
bogdanm | 73:1efda918f0ba | 100 | #define BKP_DR15 ((uint16_t)0x0050) |
bogdanm | 73:1efda918f0ba | 101 | #define BKP_DR16 ((uint16_t)0x0054) |
bogdanm | 73:1efda918f0ba | 102 | #define BKP_DR17 ((uint16_t)0x0058) |
bogdanm | 73:1efda918f0ba | 103 | #define BKP_DR18 ((uint16_t)0x005C) |
bogdanm | 73:1efda918f0ba | 104 | #define BKP_DR19 ((uint16_t)0x0060) |
bogdanm | 73:1efda918f0ba | 105 | #define BKP_DR20 ((uint16_t)0x0064) |
bogdanm | 73:1efda918f0ba | 106 | #define BKP_DR21 ((uint16_t)0x0068) |
bogdanm | 73:1efda918f0ba | 107 | #define BKP_DR22 ((uint16_t)0x006C) |
bogdanm | 73:1efda918f0ba | 108 | #define BKP_DR23 ((uint16_t)0x0070) |
bogdanm | 73:1efda918f0ba | 109 | #define BKP_DR24 ((uint16_t)0x0074) |
bogdanm | 73:1efda918f0ba | 110 | #define BKP_DR25 ((uint16_t)0x0078) |
bogdanm | 73:1efda918f0ba | 111 | #define BKP_DR26 ((uint16_t)0x007C) |
bogdanm | 73:1efda918f0ba | 112 | #define BKP_DR27 ((uint16_t)0x0080) |
bogdanm | 73:1efda918f0ba | 113 | #define BKP_DR28 ((uint16_t)0x0084) |
bogdanm | 73:1efda918f0ba | 114 | #define BKP_DR29 ((uint16_t)0x0088) |
bogdanm | 73:1efda918f0ba | 115 | #define BKP_DR30 ((uint16_t)0x008C) |
bogdanm | 73:1efda918f0ba | 116 | #define BKP_DR31 ((uint16_t)0x0090) |
bogdanm | 73:1efda918f0ba | 117 | #define BKP_DR32 ((uint16_t)0x0094) |
bogdanm | 73:1efda918f0ba | 118 | #define BKP_DR33 ((uint16_t)0x0098) |
bogdanm | 73:1efda918f0ba | 119 | #define BKP_DR34 ((uint16_t)0x009C) |
bogdanm | 73:1efda918f0ba | 120 | #define BKP_DR35 ((uint16_t)0x00A0) |
bogdanm | 73:1efda918f0ba | 121 | #define BKP_DR36 ((uint16_t)0x00A4) |
bogdanm | 73:1efda918f0ba | 122 | #define BKP_DR37 ((uint16_t)0x00A8) |
bogdanm | 73:1efda918f0ba | 123 | #define BKP_DR38 ((uint16_t)0x00AC) |
bogdanm | 73:1efda918f0ba | 124 | #define BKP_DR39 ((uint16_t)0x00B0) |
bogdanm | 73:1efda918f0ba | 125 | #define BKP_DR40 ((uint16_t)0x00B4) |
bogdanm | 73:1efda918f0ba | 126 | #define BKP_DR41 ((uint16_t)0x00B8) |
bogdanm | 73:1efda918f0ba | 127 | #define BKP_DR42 ((uint16_t)0x00BC) |
bogdanm | 73:1efda918f0ba | 128 | |
bogdanm | 73:1efda918f0ba | 129 | #define IS_BKP_DR(DR) (((DR) == BKP_DR1) || ((DR) == BKP_DR2) || ((DR) == BKP_DR3) || \ |
bogdanm | 73:1efda918f0ba | 130 | ((DR) == BKP_DR4) || ((DR) == BKP_DR5) || ((DR) == BKP_DR6) || \ |
bogdanm | 73:1efda918f0ba | 131 | ((DR) == BKP_DR7) || ((DR) == BKP_DR8) || ((DR) == BKP_DR9) || \ |
bogdanm | 73:1efda918f0ba | 132 | ((DR) == BKP_DR10) || ((DR) == BKP_DR11) || ((DR) == BKP_DR12) || \ |
bogdanm | 73:1efda918f0ba | 133 | ((DR) == BKP_DR13) || ((DR) == BKP_DR14) || ((DR) == BKP_DR15) || \ |
bogdanm | 73:1efda918f0ba | 134 | ((DR) == BKP_DR16) || ((DR) == BKP_DR17) || ((DR) == BKP_DR18) || \ |
bogdanm | 73:1efda918f0ba | 135 | ((DR) == BKP_DR19) || ((DR) == BKP_DR20) || ((DR) == BKP_DR21) || \ |
bogdanm | 73:1efda918f0ba | 136 | ((DR) == BKP_DR22) || ((DR) == BKP_DR23) || ((DR) == BKP_DR24) || \ |
bogdanm | 73:1efda918f0ba | 137 | ((DR) == BKP_DR25) || ((DR) == BKP_DR26) || ((DR) == BKP_DR27) || \ |
bogdanm | 73:1efda918f0ba | 138 | ((DR) == BKP_DR28) || ((DR) == BKP_DR29) || ((DR) == BKP_DR30) || \ |
bogdanm | 73:1efda918f0ba | 139 | ((DR) == BKP_DR31) || ((DR) == BKP_DR32) || ((DR) == BKP_DR33) || \ |
bogdanm | 73:1efda918f0ba | 140 | ((DR) == BKP_DR34) || ((DR) == BKP_DR35) || ((DR) == BKP_DR36) || \ |
bogdanm | 73:1efda918f0ba | 141 | ((DR) == BKP_DR37) || ((DR) == BKP_DR38) || ((DR) == BKP_DR39) || \ |
bogdanm | 73:1efda918f0ba | 142 | ((DR) == BKP_DR40) || ((DR) == BKP_DR41) || ((DR) == BKP_DR42)) |
bogdanm | 73:1efda918f0ba | 143 | |
bogdanm | 73:1efda918f0ba | 144 | #define IS_BKP_CALIBRATION_VALUE(VALUE) ((VALUE) <= 0x7F) |
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 | /** @defgroup BKP_Exported_Macros |
bogdanm | 73:1efda918f0ba | 154 | * @{ |
bogdanm | 73:1efda918f0ba | 155 | */ |
bogdanm | 73:1efda918f0ba | 156 | |
bogdanm | 73:1efda918f0ba | 157 | /** |
bogdanm | 73:1efda918f0ba | 158 | * @} |
bogdanm | 73:1efda918f0ba | 159 | */ |
bogdanm | 73:1efda918f0ba | 160 | |
bogdanm | 73:1efda918f0ba | 161 | /** @defgroup BKP_Exported_Functions |
bogdanm | 73:1efda918f0ba | 162 | * @{ |
bogdanm | 73:1efda918f0ba | 163 | */ |
bogdanm | 73:1efda918f0ba | 164 | |
bogdanm | 73:1efda918f0ba | 165 | void BKP_DeInit(void); |
bogdanm | 73:1efda918f0ba | 166 | void BKP_TamperPinLevelConfig(uint16_t BKP_TamperPinLevel); |
bogdanm | 73:1efda918f0ba | 167 | void BKP_TamperPinCmd(FunctionalState NewState); |
bogdanm | 73:1efda918f0ba | 168 | void BKP_ITConfig(FunctionalState NewState); |
bogdanm | 73:1efda918f0ba | 169 | void BKP_RTCOutputConfig(uint16_t BKP_RTCOutputSource); |
bogdanm | 73:1efda918f0ba | 170 | void BKP_SetRTCCalibrationValue(uint8_t CalibrationValue); |
bogdanm | 73:1efda918f0ba | 171 | void BKP_WriteBackupRegister(uint16_t BKP_DR, uint16_t Data); |
bogdanm | 73:1efda918f0ba | 172 | uint16_t BKP_ReadBackupRegister(uint16_t BKP_DR); |
bogdanm | 73:1efda918f0ba | 173 | FlagStatus BKP_GetFlagStatus(void); |
bogdanm | 73:1efda918f0ba | 174 | void BKP_ClearFlag(void); |
bogdanm | 73:1efda918f0ba | 175 | ITStatus BKP_GetITStatus(void); |
bogdanm | 73:1efda918f0ba | 176 | void BKP_ClearITPendingBit(void); |
bogdanm | 73:1efda918f0ba | 177 | |
bogdanm | 73:1efda918f0ba | 178 | #ifdef __cplusplus |
bogdanm | 73:1efda918f0ba | 179 | } |
bogdanm | 73:1efda918f0ba | 180 | #endif |
bogdanm | 73:1efda918f0ba | 181 | |
bogdanm | 73:1efda918f0ba | 182 | #endif /* __STM32F10x_BKP_H */ |
bogdanm | 73:1efda918f0ba | 183 | /** |
bogdanm | 73:1efda918f0ba | 184 | * @} |
bogdanm | 73:1efda918f0ba | 185 | */ |
bogdanm | 73:1efda918f0ba | 186 | |
bogdanm | 73:1efda918f0ba | 187 | /** |
bogdanm | 73:1efda918f0ba | 188 | * @} |
bogdanm | 73:1efda918f0ba | 189 | */ |
bogdanm | 73:1efda918f0ba | 190 | |
bogdanm | 73:1efda918f0ba | 191 | /** |
bogdanm | 73:1efda918f0ba | 192 | * @} |
bogdanm | 73:1efda918f0ba | 193 | */ |
bogdanm | 73:1efda918f0ba | 194 | |
bogdanm | 73:1efda918f0ba | 195 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ |