mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/stm32l1xx.h@181:57724642e740, 2018-02-16 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri Feb 16 16:09:33 2018 +0000
- Revision:
- 181:57724642e740
- Child:
- 184:08ed48f1de7f
mbed-dev library. Release version 159.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 181:57724642e740 | 1 | /** |
AnnaBridge | 181:57724642e740 | 2 | ****************************************************************************** |
AnnaBridge | 181:57724642e740 | 3 | * @file stm32l1xx.h |
AnnaBridge | 181:57724642e740 | 4 | * @author MCD Application Team |
AnnaBridge | 181:57724642e740 | 5 | * @version V2.2.0 |
AnnaBridge | 181:57724642e740 | 6 | * @date 01-July-2016 |
AnnaBridge | 181:57724642e740 | 7 | * @brief CMSIS STM32L1xx Device Peripheral Access Layer Header File. |
AnnaBridge | 181:57724642e740 | 8 | * |
AnnaBridge | 181:57724642e740 | 9 | * The file is the unique include file that the application programmer |
AnnaBridge | 181:57724642e740 | 10 | * is using in the C source code, usually in main.c. This file contains: |
AnnaBridge | 181:57724642e740 | 11 | * - Configuration section that allows to select: |
AnnaBridge | 181:57724642e740 | 12 | * - The STM32L1xx device used in the target application |
AnnaBridge | 181:57724642e740 | 13 | * - To use or not the peripherals drivers in application code(i.e. |
AnnaBridge | 181:57724642e740 | 14 | * code will be based on direct access to peripherals registers |
AnnaBridge | 181:57724642e740 | 15 | * rather than drivers API), this option is controlled by |
AnnaBridge | 181:57724642e740 | 16 | * "#define USE_HAL_DRIVER" |
AnnaBridge | 181:57724642e740 | 17 | * |
AnnaBridge | 181:57724642e740 | 18 | ****************************************************************************** |
AnnaBridge | 181:57724642e740 | 19 | * @attention |
AnnaBridge | 181:57724642e740 | 20 | * |
AnnaBridge | 181:57724642e740 | 21 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
AnnaBridge | 181:57724642e740 | 22 | * |
AnnaBridge | 181:57724642e740 | 23 | * Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 181:57724642e740 | 24 | * are permitted provided that the following conditions are met: |
AnnaBridge | 181:57724642e740 | 25 | * 1. Redistributions of source code must retain the above copyright notice, |
AnnaBridge | 181:57724642e740 | 26 | * this list of conditions and the following disclaimer. |
AnnaBridge | 181:57724642e740 | 27 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
AnnaBridge | 181:57724642e740 | 28 | * this list of conditions and the following disclaimer in the documentation |
AnnaBridge | 181:57724642e740 | 29 | * and/or other materials provided with the distribution. |
AnnaBridge | 181:57724642e740 | 30 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
AnnaBridge | 181:57724642e740 | 31 | * may be used to endorse or promote products derived from this software |
AnnaBridge | 181:57724642e740 | 32 | * without specific prior written permission. |
AnnaBridge | 181:57724642e740 | 33 | * |
AnnaBridge | 181:57724642e740 | 34 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
AnnaBridge | 181:57724642e740 | 35 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
AnnaBridge | 181:57724642e740 | 36 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 181:57724642e740 | 37 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
AnnaBridge | 181:57724642e740 | 38 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
AnnaBridge | 181:57724642e740 | 39 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
AnnaBridge | 181:57724642e740 | 40 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
AnnaBridge | 181:57724642e740 | 41 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
AnnaBridge | 181:57724642e740 | 42 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
AnnaBridge | 181:57724642e740 | 43 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 181:57724642e740 | 44 | * |
AnnaBridge | 181:57724642e740 | 45 | ****************************************************************************** |
AnnaBridge | 181:57724642e740 | 46 | */ |
AnnaBridge | 181:57724642e740 | 47 | |
AnnaBridge | 181:57724642e740 | 48 | /** @addtogroup CMSIS |
AnnaBridge | 181:57724642e740 | 49 | * @{ |
AnnaBridge | 181:57724642e740 | 50 | */ |
AnnaBridge | 181:57724642e740 | 51 | |
AnnaBridge | 181:57724642e740 | 52 | /** @addtogroup stm32l1xx |
AnnaBridge | 181:57724642e740 | 53 | * @{ |
AnnaBridge | 181:57724642e740 | 54 | */ |
AnnaBridge | 181:57724642e740 | 55 | |
AnnaBridge | 181:57724642e740 | 56 | #ifndef __STM32L1XX_H |
AnnaBridge | 181:57724642e740 | 57 | #define __STM32L1XX_H |
AnnaBridge | 181:57724642e740 | 58 | |
AnnaBridge | 181:57724642e740 | 59 | #ifdef __cplusplus |
AnnaBridge | 181:57724642e740 | 60 | extern "C" { |
AnnaBridge | 181:57724642e740 | 61 | #endif /* __cplusplus */ |
AnnaBridge | 181:57724642e740 | 62 | |
AnnaBridge | 181:57724642e740 | 63 | /** @addtogroup Library_configuration_section |
AnnaBridge | 181:57724642e740 | 64 | * @{ |
AnnaBridge | 181:57724642e740 | 65 | */ |
AnnaBridge | 181:57724642e740 | 66 | |
AnnaBridge | 181:57724642e740 | 67 | /** |
AnnaBridge | 181:57724642e740 | 68 | * @brief STM32 Family |
AnnaBridge | 181:57724642e740 | 69 | */ |
AnnaBridge | 181:57724642e740 | 70 | #if !defined (STM32L1) |
AnnaBridge | 181:57724642e740 | 71 | #define STM32L1 |
AnnaBridge | 181:57724642e740 | 72 | #endif /* STM32L1 */ |
AnnaBridge | 181:57724642e740 | 73 | |
AnnaBridge | 181:57724642e740 | 74 | /* Uncomment the line below according to the target STM32L device used in your |
AnnaBridge | 181:57724642e740 | 75 | application |
AnnaBridge | 181:57724642e740 | 76 | */ |
AnnaBridge | 181:57724642e740 | 77 | |
AnnaBridge | 181:57724642e740 | 78 | #if !defined (STM32L100xB) && !defined (STM32L100xBA) && !defined (STM32L100xC) && \ |
AnnaBridge | 181:57724642e740 | 79 | !defined (STM32L151xB) && !defined (STM32L151xBA) && !defined (STM32L151xC) && !defined (STM32L151xCA) && !defined (STM32L151xD) && !defined (STM32L151xDX) && !defined (STM32L151xE) && \ |
AnnaBridge | 181:57724642e740 | 80 | !defined (STM32L152xB) && !defined (STM32L152xBA) && !defined (STM32L152xC) && !defined (STM32L152xCA) && !defined (STM32L152xD) && !defined (STM32L152xDX) && !defined (STM32L152xE) && \ |
AnnaBridge | 181:57724642e740 | 81 | !defined (STM32L162xC) && !defined (STM32L162xCA) && !defined (STM32L162xD) && !defined (STM32L162xDX) && !defined (STM32L162xE) |
AnnaBridge | 181:57724642e740 | 82 | /* #define STM32L100xB */ /*!< STM32L100C6, STM32L100R and STM32L100RB Devices */ |
AnnaBridge | 181:57724642e740 | 83 | /* #define STM32L100xBA */ /*!< STM32L100C6-A, STM32L100R8-A and STM32L100RB-A Devices */ |
AnnaBridge | 181:57724642e740 | 84 | /* #define STM32L100xC */ /*!< STM32L100RC Devices */ |
AnnaBridge | 181:57724642e740 | 85 | /* #define STM32L151xB */ /*!< STM32L151C6, STM32L151R6, STM32L151C8, STM32L151R8, STM32L151V8, STM32L151CB, STM32L151RB and STM32L151VB */ |
AnnaBridge | 181:57724642e740 | 86 | /* #define STM32L151xBA */ /*!< STM32L151C6-A, STM32L151R6-A, STM32L151C8-A, STM32L151R8-A, STM32L151V8-A, STM32L151CB-A, STM32L151RB-A and STM32L151VB-A */ |
AnnaBridge | 181:57724642e740 | 87 | #define STM32L151xC /*!< STM32L151CC, STM32L151UC, STM32L151RC and STM32L151VC */ |
AnnaBridge | 181:57724642e740 | 88 | /* #define STM32L151xCA */ /*!< STM32L151RC-A, STM32L151VC-A, STM32L151QC and STM32L151ZC */ |
AnnaBridge | 181:57724642e740 | 89 | /* #define STM32L151xD */ /*!< STM32L151QD, STM32L151RD, STM32L151VD & STM32L151ZD */ |
AnnaBridge | 181:57724642e740 | 90 | /* #define STM32L151xDX */ /*!< STM32L151VD-X Devices */ |
AnnaBridge | 181:57724642e740 | 91 | /* #define STM32L151xE */ /*!< STM32L151QE, STM32L151RE, STM32L151VE and STM32L151ZE */ |
AnnaBridge | 181:57724642e740 | 92 | /* #define STM32L152xB */ /*!< STM32L152C6, STM32L152R6, STM32L152C8, STM32L152R8, STM32L152V8, STM32L152CB, STM32L152RB and STM32L152VB */ |
AnnaBridge | 181:57724642e740 | 93 | /* #define STM32L152xBA */ /*!< STM32L152C6-A, STM32L152R6-A, STM32L152C8-A, STM32L152R8-A, STM32L152V8-A, STM32L152CB-A, STM32L152RB-A and STM32L152VB-A */ |
AnnaBridge | 181:57724642e740 | 94 | /* #define STM32L152xC */ /*!< STM32L152CC, STM32L152UC, STM32L152RC and STM32L152VC */ |
AnnaBridge | 181:57724642e740 | 95 | /* #define STM32L152xCA */ /*!< STM32L152RC-A, STM32L152VC-A, STM32L152QC and STM32L152ZC */ |
AnnaBridge | 181:57724642e740 | 96 | /* #define STM32L152xD */ /*!< STM32L152QD, STM32L152RD, STM32L152VD and STM32L152ZD */ |
AnnaBridge | 181:57724642e740 | 97 | /* #define STM32L152xDX */ /*!< STM32L152VD-X Devices */ |
AnnaBridge | 181:57724642e740 | 98 | /* #define STM32L152xE */ /*!< STM32L152QE, STM32L152RE, STM32L152VE and STM32L152ZE */ |
AnnaBridge | 181:57724642e740 | 99 | /* #define STM32L162xC */ /*!< STM32L162RC and STM32L162VC */ |
AnnaBridge | 181:57724642e740 | 100 | /* #define STM32L162xCA */ /*!< STM32L162RC-A, STM32L162VC-A, STM32L162QC and STM32L162ZC */ |
AnnaBridge | 181:57724642e740 | 101 | /* #define STM32L162xD */ /*!< STM32L162QD, STM32L162RD, STM32L162VD and STM32L162ZD */ |
AnnaBridge | 181:57724642e740 | 102 | /* #define STM32L162xDX */ /*!< STM32L162VD-X Devices */ |
AnnaBridge | 181:57724642e740 | 103 | /* #define STM32L162xE */ /*!< STM32L162RE, STM32L162VE and STM32L162ZE */ |
AnnaBridge | 181:57724642e740 | 104 | #endif |
AnnaBridge | 181:57724642e740 | 105 | |
AnnaBridge | 181:57724642e740 | 106 | /* Tip: To avoid modifying this file each time you need to switch between these |
AnnaBridge | 181:57724642e740 | 107 | devices, you can define the device in your toolchain compiler preprocessor. |
AnnaBridge | 181:57724642e740 | 108 | */ |
AnnaBridge | 181:57724642e740 | 109 | |
AnnaBridge | 181:57724642e740 | 110 | #if !defined (USE_HAL_DRIVER) |
AnnaBridge | 181:57724642e740 | 111 | /** |
AnnaBridge | 181:57724642e740 | 112 | * @brief Comment the line below if you will not use the peripherals drivers. |
AnnaBridge | 181:57724642e740 | 113 | In this case, these drivers will not be included and the application code will |
AnnaBridge | 181:57724642e740 | 114 | be based on direct access to peripherals registers |
AnnaBridge | 181:57724642e740 | 115 | */ |
AnnaBridge | 181:57724642e740 | 116 | #define USE_HAL_DRIVER |
AnnaBridge | 181:57724642e740 | 117 | #endif /* USE_HAL_DRIVER */ |
AnnaBridge | 181:57724642e740 | 118 | |
AnnaBridge | 181:57724642e740 | 119 | /** |
AnnaBridge | 181:57724642e740 | 120 | * @brief CMSIS Device version number |
AnnaBridge | 181:57724642e740 | 121 | */ |
AnnaBridge | 181:57724642e740 | 122 | #define __STM32L1xx_CMSIS_VERSION_MAIN (0x02) /*!< [31:24] main version */ |
AnnaBridge | 181:57724642e740 | 123 | #define __STM32L1xx_CMSIS_VERSION_SUB1 (0x02) /*!< [23:16] sub1 version */ |
AnnaBridge | 181:57724642e740 | 124 | #define __STM32L1xx_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */ |
AnnaBridge | 181:57724642e740 | 125 | #define __STM32L1xx_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */ |
AnnaBridge | 181:57724642e740 | 126 | #define __STM32L1xx_CMSIS_VERSION ((__STM32L1xx_CMSIS_VERSION_MAIN << 24)\ |
AnnaBridge | 181:57724642e740 | 127 | |(__STM32L1xx_CMSIS_VERSION_SUB1 << 16)\ |
AnnaBridge | 181:57724642e740 | 128 | |(__STM32L1xx_CMSIS_VERSION_SUB2 << 8 )\ |
AnnaBridge | 181:57724642e740 | 129 | |(__STM32L1xx_CMSIS_VERSION_RC)) |
AnnaBridge | 181:57724642e740 | 130 | |
AnnaBridge | 181:57724642e740 | 131 | /** |
AnnaBridge | 181:57724642e740 | 132 | * @} |
AnnaBridge | 181:57724642e740 | 133 | */ |
AnnaBridge | 181:57724642e740 | 134 | |
AnnaBridge | 181:57724642e740 | 135 | /** @addtogroup Device_Included |
AnnaBridge | 181:57724642e740 | 136 | * @{ |
AnnaBridge | 181:57724642e740 | 137 | */ |
AnnaBridge | 181:57724642e740 | 138 | |
AnnaBridge | 181:57724642e740 | 139 | #if defined(STM32L100xB) |
AnnaBridge | 181:57724642e740 | 140 | #include "stm32l100xb.h" |
AnnaBridge | 181:57724642e740 | 141 | #elif defined(STM32L100xBA) |
AnnaBridge | 181:57724642e740 | 142 | #include "stm32l100xba.h" |
AnnaBridge | 181:57724642e740 | 143 | #elif defined(STM32L100xC) |
AnnaBridge | 181:57724642e740 | 144 | #include "stm32l100xc.h" |
AnnaBridge | 181:57724642e740 | 145 | #elif defined(STM32L151xB) |
AnnaBridge | 181:57724642e740 | 146 | #include "stm32l151xb.h" |
AnnaBridge | 181:57724642e740 | 147 | #elif defined(STM32L151xBA) |
AnnaBridge | 181:57724642e740 | 148 | #include "stm32l151xba.h" |
AnnaBridge | 181:57724642e740 | 149 | #elif defined(STM32L151xC) |
AnnaBridge | 181:57724642e740 | 150 | #include "stm32l151xc.h" |
AnnaBridge | 181:57724642e740 | 151 | #elif defined(STM32L151xCA) |
AnnaBridge | 181:57724642e740 | 152 | #include "stm32l151xca.h" |
AnnaBridge | 181:57724642e740 | 153 | #elif defined(STM32L151xD) |
AnnaBridge | 181:57724642e740 | 154 | #include "stm32l151xd.h" |
AnnaBridge | 181:57724642e740 | 155 | #elif defined(STM32L151xDX) |
AnnaBridge | 181:57724642e740 | 156 | #include "stm32l151xdx.h" |
AnnaBridge | 181:57724642e740 | 157 | #elif defined(STM32L151xE) |
AnnaBridge | 181:57724642e740 | 158 | #include "stm32l151xe.h" |
AnnaBridge | 181:57724642e740 | 159 | #elif defined(STM32L152xB) |
AnnaBridge | 181:57724642e740 | 160 | #include "stm32l152xb.h" |
AnnaBridge | 181:57724642e740 | 161 | #elif defined(STM32L152xBA) |
AnnaBridge | 181:57724642e740 | 162 | #include "stm32l152xba.h" |
AnnaBridge | 181:57724642e740 | 163 | #elif defined(STM32L152xC) |
AnnaBridge | 181:57724642e740 | 164 | #include "stm32l152xc.h" |
AnnaBridge | 181:57724642e740 | 165 | #elif defined(STM32L152xCA) |
AnnaBridge | 181:57724642e740 | 166 | #include "stm32l152xca.h" |
AnnaBridge | 181:57724642e740 | 167 | #elif defined(STM32L152xD) |
AnnaBridge | 181:57724642e740 | 168 | #include "stm32l152xd.h" |
AnnaBridge | 181:57724642e740 | 169 | #elif defined(STM32L152xDX) |
AnnaBridge | 181:57724642e740 | 170 | #include "stm32l152xdx.h" |
AnnaBridge | 181:57724642e740 | 171 | #elif defined(STM32L152xE) |
AnnaBridge | 181:57724642e740 | 172 | #include "stm32l152xe.h" |
AnnaBridge | 181:57724642e740 | 173 | #elif defined(STM32L162xC) |
AnnaBridge | 181:57724642e740 | 174 | #include "stm32l162xc.h" |
AnnaBridge | 181:57724642e740 | 175 | #elif defined(STM32L162xCA) |
AnnaBridge | 181:57724642e740 | 176 | #include "stm32l162xca.h" |
AnnaBridge | 181:57724642e740 | 177 | #elif defined(STM32L162xD) |
AnnaBridge | 181:57724642e740 | 178 | #include "stm32l162xd.h" |
AnnaBridge | 181:57724642e740 | 179 | #elif defined(STM32L162xDX) |
AnnaBridge | 181:57724642e740 | 180 | #include "stm32l162xdx.h" |
AnnaBridge | 181:57724642e740 | 181 | #elif defined(STM32L162xE) |
AnnaBridge | 181:57724642e740 | 182 | #include "stm32l162xe.h" |
AnnaBridge | 181:57724642e740 | 183 | #else |
AnnaBridge | 181:57724642e740 | 184 | #error "Please select first the target STM32L1xx device used in your application (in stm32l1xx.h file)" |
AnnaBridge | 181:57724642e740 | 185 | #endif |
AnnaBridge | 181:57724642e740 | 186 | |
AnnaBridge | 181:57724642e740 | 187 | /** |
AnnaBridge | 181:57724642e740 | 188 | * @} |
AnnaBridge | 181:57724642e740 | 189 | */ |
AnnaBridge | 181:57724642e740 | 190 | |
AnnaBridge | 181:57724642e740 | 191 | /** @addtogroup Exported_types |
AnnaBridge | 181:57724642e740 | 192 | * @{ |
AnnaBridge | 181:57724642e740 | 193 | */ |
AnnaBridge | 181:57724642e740 | 194 | typedef enum |
AnnaBridge | 181:57724642e740 | 195 | { |
AnnaBridge | 181:57724642e740 | 196 | RESET = 0, |
AnnaBridge | 181:57724642e740 | 197 | SET = !RESET |
AnnaBridge | 181:57724642e740 | 198 | } FlagStatus, ITStatus; |
AnnaBridge | 181:57724642e740 | 199 | |
AnnaBridge | 181:57724642e740 | 200 | typedef enum |
AnnaBridge | 181:57724642e740 | 201 | { |
AnnaBridge | 181:57724642e740 | 202 | DISABLE = 0, |
AnnaBridge | 181:57724642e740 | 203 | ENABLE = !DISABLE |
AnnaBridge | 181:57724642e740 | 204 | } FunctionalState; |
AnnaBridge | 181:57724642e740 | 205 | #define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE)) |
AnnaBridge | 181:57724642e740 | 206 | |
AnnaBridge | 181:57724642e740 | 207 | typedef enum |
AnnaBridge | 181:57724642e740 | 208 | { |
AnnaBridge | 181:57724642e740 | 209 | ERROR = 0, |
AnnaBridge | 181:57724642e740 | 210 | SUCCESS = !ERROR |
AnnaBridge | 181:57724642e740 | 211 | } ErrorStatus; |
AnnaBridge | 181:57724642e740 | 212 | |
AnnaBridge | 181:57724642e740 | 213 | /** |
AnnaBridge | 181:57724642e740 | 214 | * @} |
AnnaBridge | 181:57724642e740 | 215 | */ |
AnnaBridge | 181:57724642e740 | 216 | |
AnnaBridge | 181:57724642e740 | 217 | |
AnnaBridge | 181:57724642e740 | 218 | /** @addtogroup Exported_macros |
AnnaBridge | 181:57724642e740 | 219 | * @{ |
AnnaBridge | 181:57724642e740 | 220 | */ |
AnnaBridge | 181:57724642e740 | 221 | #define SET_BIT(REG, BIT) ((REG) |= (BIT)) |
AnnaBridge | 181:57724642e740 | 222 | |
AnnaBridge | 181:57724642e740 | 223 | #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) |
AnnaBridge | 181:57724642e740 | 224 | |
AnnaBridge | 181:57724642e740 | 225 | #define READ_BIT(REG, BIT) ((REG) & (BIT)) |
AnnaBridge | 181:57724642e740 | 226 | |
AnnaBridge | 181:57724642e740 | 227 | #define CLEAR_REG(REG) ((REG) = (0x0)) |
AnnaBridge | 181:57724642e740 | 228 | |
AnnaBridge | 181:57724642e740 | 229 | #define WRITE_REG(REG, VAL) ((REG) = (VAL)) |
AnnaBridge | 181:57724642e740 | 230 | |
AnnaBridge | 181:57724642e740 | 231 | #define READ_REG(REG) ((REG)) |
AnnaBridge | 181:57724642e740 | 232 | |
AnnaBridge | 181:57724642e740 | 233 | #define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) |
AnnaBridge | 181:57724642e740 | 234 | |
AnnaBridge | 181:57724642e740 | 235 | #define POSITION_VAL(VAL) (__CLZ(__RBIT(VAL))) |
AnnaBridge | 181:57724642e740 | 236 | |
AnnaBridge | 181:57724642e740 | 237 | |
AnnaBridge | 181:57724642e740 | 238 | /** |
AnnaBridge | 181:57724642e740 | 239 | * @} |
AnnaBridge | 181:57724642e740 | 240 | */ |
AnnaBridge | 181:57724642e740 | 241 | |
AnnaBridge | 181:57724642e740 | 242 | #if defined (USE_HAL_DRIVER) |
AnnaBridge | 181:57724642e740 | 243 | #include "stm32l1xx_hal.h" |
AnnaBridge | 181:57724642e740 | 244 | #endif /* USE_HAL_DRIVER */ |
AnnaBridge | 181:57724642e740 | 245 | |
AnnaBridge | 181:57724642e740 | 246 | |
AnnaBridge | 181:57724642e740 | 247 | #ifdef __cplusplus |
AnnaBridge | 181:57724642e740 | 248 | } |
AnnaBridge | 181:57724642e740 | 249 | #endif /* __cplusplus */ |
AnnaBridge | 181:57724642e740 | 250 | |
AnnaBridge | 181:57724642e740 | 251 | #endif /* __STM32L1xx_H */ |
AnnaBridge | 181:57724642e740 | 252 | /** |
AnnaBridge | 181:57724642e740 | 253 | * @} |
AnnaBridge | 181:57724642e740 | 254 | */ |
AnnaBridge | 181:57724642e740 | 255 | |
AnnaBridge | 181:57724642e740 | 256 | /** |
AnnaBridge | 181:57724642e740 | 257 | * @} |
AnnaBridge | 181:57724642e740 | 258 | */ |
AnnaBridge | 181:57724642e740 | 259 | |
AnnaBridge | 181:57724642e740 | 260 | |
AnnaBridge | 181:57724642e740 | 261 | |
AnnaBridge | 181:57724642e740 | 262 | |
AnnaBridge | 181:57724642e740 | 263 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |