|
18 | 18 | ******************************************************************************
|
19 | 19 | * @attention
|
20 | 20 | *
|
21 |
| - * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
| 21 | + * <h2><center>© Copyright(c) 2016 STMicroelectronics. |
| 22 | + * All rights reserved.</center></h2> |
22 | 23 | *
|
23 |
| - * Redistribution and use in source and binary forms, with or without modification, |
24 |
| - * are permitted provided that the following conditions are met: |
25 |
| - * 1. Redistributions of source code must retain the above copyright notice, |
26 |
| - * this list of conditions and the following disclaimer. |
27 |
| - * 2. Redistributions in binary form must reproduce the above copyright notice, |
28 |
| - * this list of conditions and the following disclaimer in the documentation |
29 |
| - * and/or other materials provided with the distribution. |
30 |
| - * 3. Neither the name of STMicroelectronics nor the names of its contributors |
31 |
| - * may be used to endorse or promote products derived from this software |
32 |
| - * without specific prior written permission. |
33 |
| - * |
34 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
35 |
| - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
36 |
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
37 |
| - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
38 |
| - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
39 |
| - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
40 |
| - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
41 |
| - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
42 |
| - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
43 |
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 | + * This software component is licensed by ST under BSD 3-Clause license, |
| 25 | + * the "License"; You may not use this file except in compliance with the |
| 26 | + * License. You may obtain a copy of the License at: |
| 27 | + * opensource.org/licenses/BSD-3-Clause |
44 | 28 | *
|
45 | 29 | ******************************************************************************
|
46 | 30 | */
|
|
75 | 59 | application
|
76 | 60 | */
|
77 | 61 |
|
78 |
| -#if !defined (STM32L011xx) && !defined (STM32L021xx) && \ |
| 62 | +#if !defined (STM32L010x4) && !defined (STM32L010x6) && !defined (STM32L010x8) && !defined (STM32L010xB) && \ |
| 63 | + !defined (STM32L011xx) && !defined (STM32L021xx) && \ |
79 | 64 | !defined (STM32L031xx) && !defined (STM32L041xx) && \
|
80 | 65 | !defined (STM32L051xx) && !defined (STM32L052xx) && !defined (STM32L053xx) && \
|
81 | 66 | !defined (STM32L061xx) && !defined (STM32L062xx) && !defined (STM32L063xx) && \
|
82 | 67 | !defined (STM32L071xx) && !defined (STM32L072xx) && !defined (STM32L073xx) && \
|
83 |
| - !defined (STM32L081xx) && !defined (STM32L082xx) && !defined (STM32L083xx) \ |
84 |
| - /* #define STM32L011xx */ |
85 |
| - /* #define STM32L021xx */ |
86 |
| - /* #define STM32L031xx */ /*!< STM32L031C6, STM32L031E6, STM32L031F6, STM32L031G6, STM32L031K6 Devices */ |
87 |
| - /* #define STM32L041xx */ /*!< STM32L041C6, STM32L041E6, STM32L041F6, STM32L041G6, STM32L041K6 Devices */ |
88 |
| - /* #define STM32L051xx */ /*!< STM32L051K8, STM32L051C6, STM32L051C8, STM32L051R6, STM32L051R8 Devices */ |
89 |
| - /* #define STM32L052xx */ /*!< STM32L052K6, STM32L052K8, STM32L052C6, STM32L052C8, STM32L052R6, STM32L052R8 Devices */ |
90 |
| - /* #define STM32L053xx */ /*!< STM32L053C6, STM32L053C8, STM32L053R6, STM32L053R8 Devices */ |
| 68 | + !defined (STM32L081xx) && !defined (STM32L082xx) && !defined (STM32L083xx) |
| 69 | + /* #define STM32L010x4 */ /*!< STM32L010K4, STM32L010F4 Devices */ |
| 70 | + /* #define STM32L010x6 */ /*!< STM32L010C6 Devices */ |
| 71 | + /* #define STM32L010x8 */ /*!< STM32L010K8, STM32L010R8 Devices */ |
| 72 | + /* #define STM32L010xB */ /*!< STM32L010RB Devices */ |
| 73 | + /* #define STM32L011xx */ /*!< STM32L031C6, STM32L031E6, STM32L031F6, STM32L031G6, STM32L031K6 Devices */ |
| 74 | + /* #define STM32L021xx */ /*!< STM32L021D4, STM32L021F4, STM32L021G4, STM32L021K4 Devices */ |
| 75 | + /* #define STM32L031xx */ /*!< STM32L031C6, STM32L031E6, STM32L031F6, STM32L031G6, STM32L031K6 Devices */ |
| 76 | + /* #define STM32L041xx */ /*!< STM32L041C6, STM32L041K6, STM32L041G6, STM32L041F6, STM32L041E6 Devices */ |
| 77 | + /* #define STM32L051xx */ /*!< STM32L051K8, STM32L051C6, STM32L051C8, STM32L051R6, STM32L051R8, STM32L051K6, STM32L051T6, STM32L051T8 Devices */ |
| 78 | + /* #define STM32L052xx */ /*!< STM32L052K6, STM32L052K8, STM32L052C6, STM32L052C8, STM32L052R6, STM32L052R8, STM32L052T6, STM32L052T8 Devices */ |
| 79 | + /* #define STM32L053xx */ /*!< STM32L053C6, STM32L053C8, STM32L053R6, STM32L053R8 Devices */ |
91 | 80 | /* #define STM32L061xx */ /*!< */
|
92 |
| - /* #define STM32L062xx */ /*!< STM32L062K8 */ |
93 |
| - /* #define STM32L063xx */ /*!< STM32L063C8, STM32L063R8 */ |
94 |
| - /* #define STM32L071xx */ /*!< */ |
95 |
| - /* #define STM32L072xx */ /*!< */ |
96 |
| - /* #define STM32L073xx */ /*!< STM32L073V8, STM32L073VB, STM32L073RB, STM32L073VZ, STM32L073RZ Devices */ |
97 |
| - /* #define STM32L081xx */ /*!< */ |
98 |
| - /* #define STM32L082xx */ /*!< */ |
99 |
| - /* #define STM32L083xx */ /*!< */ |
| 81 | + /* #define STM32L062xx */ /*!< STM32L062K8 Devices */ |
| 82 | + /* #define STM32L063xx */ /*!< STM32L063C8, STM32L063R8 Devices */ |
| 83 | + /* #define STM32L071xx */ /*!< STM32L071V8, STM32L071K8, STM32L071VB, STM32L071RB, STM32L071CB, STM32L071KB, STM32L071VZ, STM32L071RZ, STM32L071CZ, STM32L071KZ, STM32L071C8 Devices */ |
| 84 | + /* #define STM32L072xx */ /*!< STM32L072V8, STM32L072VB, STM32L072RB, STM32L072CB, STM32L072VZ, STM32L072RZ, STM32L072CZ, STM32L072KB, STM32L072KZ Devices */ |
| 85 | + /* #define STM32L073xx */ /*!< STM32L073V8, STM32L073VB, STM32L073RB, STM32L073VZ, STM32L073RZ, STM32L073CB, STM32L073CZ Devices */ |
| 86 | + /* #define STM32L081xx */ /*!< STM32L081CB, STM32L081CZ, STM32L081KZ Devices */ |
| 87 | + /* #define STM32L082xx */ /*!< STM32L082KB, STM32L082KZ, STM32L082CZ Devices */ |
| 88 | + /* #define STM32L083xx */ /*!< STM32L083V8, STM32L083VB, STM32L083RB, STM32L083VZ, STM32L083RZ, STM32L083CB, STM32L083CZ Devices */ |
100 | 89 | #endif
|
101 | 90 |
|
102 | 91 | /* Tip: To avoid modifying this file each time you need to switch between these
|
|
112 | 101 | #endif /* USE_HAL_DRIVER */
|
113 | 102 |
|
114 | 103 | /**
|
115 |
| - * @brief CMSIS Device version number V1.7.1 |
| 104 | + * @brief CMSIS Device version number |
116 | 105 | */
|
117 | 106 | #define __STM32L0xx_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
|
118 |
| -#define __STM32L0xx_CMSIS_VERSION_SUB1 (0x07) /*!< [23:16] sub1 version */ |
119 |
| -#define __STM32L0xx_CMSIS_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */ |
| 107 | +#define __STM32L0xx_CMSIS_VERSION_SUB1 (0x09) /*!< [23:16] sub1 version */ |
| 108 | +#define __STM32L0xx_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */ |
120 | 109 | #define __STM32L0xx_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
|
121 | 110 | #define __STM32L0xx_CMSIS_VERSION ((__STM32L0xx_CMSIS_VERSION_MAIN << 24)\
|
122 | 111 | |(__STM32L0xx_CMSIS_VERSION_SUB1 << 16)\
|
|
130 | 119 | /** @addtogroup Device_Included
|
131 | 120 | * @{
|
132 | 121 | */
|
133 |
| -#if defined(STM32L011xx) |
| 122 | +#if defined(STM32L010xB) |
| 123 | + #include "stm32l010xb.h" |
| 124 | +#elif defined(STM32L010x8) |
| 125 | + #include "stm32l010x8.h" |
| 126 | +#elif defined(STM32L010x6) |
| 127 | + #include "stm32l010x6.h" |
| 128 | +#elif defined(STM32L010x4) |
| 129 | + #include "stm32l010x4.h" |
| 130 | +#elif defined(STM32L011xx) |
134 | 131 | #include "stm32l011xx.h"
|
135 | 132 | #elif defined(STM32L021xx)
|
136 | 133 | #include "stm32l021xx.h"
|
@@ -188,8 +185,8 @@ typedef enum
|
188 | 185 |
|
189 | 186 | typedef enum
|
190 | 187 | {
|
191 |
| - ERROR = 0, |
192 |
| - SUCCESS = !ERROR |
| 188 | + SUCCESS = 0, |
| 189 | + ERROR = !SUCCESS |
193 | 190 | } ErrorStatus;
|
194 | 191 |
|
195 | 192 | /**
|
|
0 commit comments