|
12 | 12 | ******************************************************************************
|
13 | 13 | * @attention
|
14 | 14 | *
|
15 |
| - * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
| 15 | + * <h2><center>© Copyright (c) 2018 STMicroelectronics. |
| 16 | + * All rights reserved.</center></h2> |
16 | 17 | *
|
17 |
| - * Redistribution and use in source and binary forms, with or without modification, |
18 |
| - * are permitted provided that the following conditions are met: |
19 |
| - * 1. Redistributions of source code must retain the above copyright notice, |
20 |
| - * this list of conditions and the following disclaimer. |
21 |
| - * 2. Redistributions in binary form must reproduce the above copyright notice, |
22 |
| - * this list of conditions and the following disclaimer in the documentation |
23 |
| - * and/or other materials provided with the distribution. |
24 |
| - * 3. Neither the name of STMicroelectronics nor the names of its contributors |
25 |
| - * may be used to endorse or promote products derived from this software |
26 |
| - * without specific prior written permission. |
27 |
| - * |
28 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
29 |
| - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
30 |
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
31 |
| - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
32 |
| - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
33 |
| - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
34 |
| - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
35 |
| - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
36 |
| - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
37 |
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 18 | + * This software component is licensed by ST under BSD 3-Clause license, |
| 19 | + * the "License"; You may not use this file except in compliance with the |
| 20 | + * License. You may obtain a copy of the License at: |
| 21 | + * opensource.org/licenses/BSD-3-Clause |
38 | 22 | *
|
39 | 23 | ******************************************************************************
|
40 | 24 | */
|
@@ -93,7 +77,7 @@ typedef enum
|
93 | 77 | SysTick_IRQn = -1, /*!< 15 Cortex-M4 System Tick Interrupt */
|
94 | 78 | /****** STM32 specific Interrupt Numbers **********************************************************************/
|
95 | 79 | WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
|
96 |
| - PVD_PVM_IRQn = 1, /*!< PVD/PVM1/PVM2/PVM3/PVM4 through EXTI Line detection Interrupts */ |
| 80 | + PVD_PVM_IRQn = 1, /*!< PVD/PVM1/PVM3/PVM4 through EXTI Line detection Interrupts */ |
97 | 81 | TAMP_STAMP_IRQn = 2, /*!< Tamper and TimeStamp interrupts through the EXTI line */
|
98 | 82 | RTC_WKUP_IRQn = 3, /*!< RTC Wakeup interrupt through the EXTI line */
|
99 | 83 | FLASH_IRQn = 4, /*!< FLASH global Interrupt */
|
@@ -1340,6 +1324,10 @@ typedef struct
|
1340 | 1324 | #define ADC_SMPR1_SMP9_1 (0x2UL << ADC_SMPR1_SMP9_Pos) /*!< 0x10000000 */
|
1341 | 1325 | #define ADC_SMPR1_SMP9_2 (0x4UL << ADC_SMPR1_SMP9_Pos) /*!< 0x20000000 */
|
1342 | 1326 |
|
| 1327 | +#define ADC_SMPR1_SMPPLUS_Pos (31U) |
| 1328 | +#define ADC_SMPR1_SMPPLUS_Msk (0x1UL << ADC_SMPR1_SMPPLUS_Pos) /*!< 0x80000000 */ |
| 1329 | +#define ADC_SMPR1_SMPPLUS ADC_SMPR1_SMPPLUS_Msk /*!< ADC channels sampling time additional setting */ |
| 1330 | + |
1343 | 1331 | /******************** Bit definition for ADC_SMPR2 register *****************/
|
1344 | 1332 | #define ADC_SMPR2_SMP10_Pos (0U)
|
1345 | 1333 | #define ADC_SMPR2_SMP10_Msk (0x7UL << ADC_SMPR2_SMP10_Pos) /*!< 0x00000007 */
|
@@ -3217,7 +3205,7 @@ typedef struct
|
3217 | 3205 | #define FLASH_CR_MER1_Msk (0x1UL << FLASH_CR_MER1_Pos) /*!< 0x00000004 */
|
3218 | 3206 | #define FLASH_CR_MER1 FLASH_CR_MER1_Msk
|
3219 | 3207 | #define FLASH_CR_PNB_Pos (3U)
|
3220 |
| -#define FLASH_CR_PNB_Msk (0x7FUL << FLASH_CR_PNB_Pos) /*!< 0x000003F8 */ |
| 3208 | +#define FLASH_CR_PNB_Msk (0x3FUL << FLASH_CR_PNB_Pos) /*!< 0x000001F8 */ |
3221 | 3209 | #define FLASH_CR_PNB FLASH_CR_PNB_Msk
|
3222 | 3210 | #define FLASH_CR_STRT_Pos (16U)
|
3223 | 3211 | #define FLASH_CR_STRT_Msk (0x1UL << FLASH_CR_STRT_Pos) /*!< 0x00010000 */
|
@@ -4821,9 +4809,9 @@ typedef struct
|
4821 | 4809 | #define PWR_CR3_EIWUL_Pos (15U)
|
4822 | 4810 | #define PWR_CR3_EIWUL_Msk (0x1UL << PWR_CR3_EIWUL_Pos) /*!< 0x00008000 */
|
4823 | 4811 | #define PWR_CR3_EIWUL PWR_CR3_EIWUL_Msk /*!< Enable Internal Wake-up line */
|
4824 |
| -#define PWR_CR3_EN_ULP_Pos (11U) |
4825 |
| -#define PWR_CR3_EN_ULP_Msk (0x1UL << PWR_CR3_EN_ULP_Pos) /*!< 0x00000800 */ |
4826 |
| -#define PWR_CR3_EN_ULP PWR_CR3_EN_ULP_Msk /*!< Enable ULP BORL, BORH and PVD for STOP2 and Standby modes */ |
| 4812 | +#define PWR_CR3_ENULP_Pos (11U) |
| 4813 | +#define PWR_CR3_ENULP_Msk (0x1UL << PWR_CR3_ENULP_Pos) /*!< 0x00000800 */ |
| 4814 | +#define PWR_CR3_ENULP PWR_CR3_ENULP_Msk /*!< Enable ULP BORL, BORH and PVD for STOP2 and Standby modes */ |
4827 | 4815 | #define PWR_CR3_APC_Pos (10U)
|
4828 | 4816 | #define PWR_CR3_APC_Msk (0x1UL << PWR_CR3_APC_Pos) /*!< 0x00000400 */
|
4829 | 4817 | #define PWR_CR3_APC PWR_CR3_APC_Msk /*!< Apply pull-up and pull-down configuration */
|
@@ -7321,6 +7309,12 @@ typedef struct
|
7321 | 7309 | #define QUADSPI_CR_SSHIFT_Pos (4U)
|
7322 | 7310 | #define QUADSPI_CR_SSHIFT_Msk (0x1UL << QUADSPI_CR_SSHIFT_Pos) /*!< 0x00000010 */
|
7323 | 7311 | #define QUADSPI_CR_SSHIFT QUADSPI_CR_SSHIFT_Msk /*!< Sample Shift */
|
| 7312 | +#define QUADSPI_CR_DFM_Pos (6U) |
| 7313 | +#define QUADSPI_CR_DFM_Msk (0x1UL << QUADSPI_CR_DFM_Pos) /*!< 0x00000040 */ |
| 7314 | +#define QUADSPI_CR_DFM QUADSPI_CR_DFM_Msk /*!< Dual-flash mode */ |
| 7315 | +#define QUADSPI_CR_FSEL_Pos (7U) |
| 7316 | +#define QUADSPI_CR_FSEL_Msk (0x1UL << QUADSPI_CR_FSEL_Pos) /*!< 0x00000080 */ |
| 7317 | +#define QUADSPI_CR_FSEL QUADSPI_CR_FSEL_Msk /*!< Flash memory selection */ |
7324 | 7318 | #define QUADSPI_CR_FTHRES_Pos (8U)
|
7325 | 7319 | #define QUADSPI_CR_FTHRES_Msk (0xFUL << QUADSPI_CR_FTHRES_Pos) /*!< 0x00000F00 */
|
7326 | 7320 | #define QUADSPI_CR_FTHRES QUADSPI_CR_FTHRES_Msk /*!< FTHRES[3:0] FIFO Level */
|
@@ -7450,6 +7444,9 @@ typedef struct
|
7450 | 7444 | #define QUADSPI_CCR_SIOO_Pos (28U)
|
7451 | 7445 | #define QUADSPI_CCR_SIOO_Msk (0x1UL << QUADSPI_CCR_SIOO_Pos) /*!< 0x10000000 */
|
7452 | 7446 | #define QUADSPI_CCR_SIOO QUADSPI_CCR_SIOO_Msk /*!< SIOO: Send Instruction Only Once Mode */
|
| 7447 | +#define QUADSPI_CCR_DHHC_Pos (30U) |
| 7448 | +#define QUADSPI_CCR_DHHC_Msk (0x1UL << QUADSPI_CCR_DHHC_Pos) /*!< 0x40000000 */ |
| 7449 | +#define QUADSPI_CCR_DHHC QUADSPI_CCR_DHHC_Msk /*!< DHHC: DDR hold */ |
7453 | 7450 | #define QUADSPI_CCR_DDRM_Pos (31U)
|
7454 | 7451 | #define QUADSPI_CCR_DDRM_Msk (0x1UL << QUADSPI_CCR_DDRM_Pos) /*!< 0x80000000 */
|
7455 | 7452 | #define QUADSPI_CCR_DDRM QUADSPI_CCR_DDRM_Msk /*!< DDRM: Double Data Rate Mode */
|
@@ -8606,7 +8603,7 @@ typedef struct
|
8606 | 8603 |
|
8607 | 8604 | /******************************************************************************/
|
8608 | 8605 | /* */
|
8609 |
| -/* Low Power Timer (LPTTIM) */ |
| 8606 | +/* Low Power Timer (LPTIM) */ |
8610 | 8607 | /* */
|
8611 | 8608 | /******************************************************************************/
|
8612 | 8609 | /****************** Bit definition for LPTIM_ISR register *******************/
|
@@ -10593,6 +10590,9 @@ typedef struct
|
10593 | 10590 | #define IS_LPTIM_INSTANCE(INSTANCE) (((INSTANCE) == LPTIM1) || \
|
10594 | 10591 | ((INSTANCE) == LPTIM2))
|
10595 | 10592 |
|
| 10593 | +/****************** LPTIM Instances : supporting the encoder mode *************/ |
| 10594 | +#define IS_LPTIM_ENCODER_INTERFACE_INSTANCE(INSTANCE) ((INSTANCE) == LPTIM1) |
| 10595 | + |
10596 | 10596 | /****************** TIM Instances : All supported instances *******************/
|
10597 | 10597 | #define IS_TIM_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
|
10598 | 10598 | ((INSTANCE) == TIM2) || \
|
|
0 commit comments