|
15 | 15 | * <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
16 | 16 | * All rights reserved.</center></h2>
|
17 | 17 | *
|
18 |
| - * This software component is licensed by ST under BSD 3-Clause license, |
| 18 | + * This software component is licensed by ST under Apache License, Version 2.0, |
19 | 19 | * the "License"; You may not use this file except in compliance with the
|
20 | 20 | * License. You may obtain a copy of the License at:
|
21 |
| - * opensource.org/licenses/BSD-3-Clause |
| 21 | + * opensource.org/licenses/Apache-2.0 |
22 | 22 | *
|
23 | 23 | ******************************************************************************
|
24 | 24 | */
|
@@ -5722,6 +5722,13 @@ typedef struct
|
5722 | 5722 | #define CRS_CR_SWSYNC CRS_CR_SWSYNC_Msk /*!< Generate software SYNC event */
|
5723 | 5723 | #define CRS_CR_TRIM_Pos (8U)
|
5724 | 5724 | #define CRS_CR_TRIM_Msk (0x3FUL << CRS_CR_TRIM_Pos) /*!< 0x00003F00 */
|
| 5725 | +#define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< TRIM[5:0] HSI48 oscillator smooth trimming */ |
| 5726 | +#define CRS_CR_TRIM_0 (0x01UL << CRS_CR_TRIM_Pos) /*!< 0x00000100 */ |
| 5727 | +#define CRS_CR_TRIM_1 (0x02UL << CRS_CR_TRIM_Pos) /*!< 0x00000200 */ |
| 5728 | +#define CRS_CR_TRIM_2 (0x04UL << CRS_CR_TRIM_Pos) /*!< 0x00000400 */ |
| 5729 | +#define CRS_CR_TRIM_3 (0x08UL << CRS_CR_TRIM_Pos) /*!< 0x00000800 */ |
| 5730 | +#define CRS_CR_TRIM_4 (0x10UL << CRS_CR_TRIM_Pos) /*!< 0x00001000 */ |
| 5731 | +#define CRS_CR_TRIM_5 (0x20UL << CRS_CR_TRIM_Pos) /*!< 0x00002000 */ |
5725 | 5732 | #define CRS_CR_TRIM CRS_CR_TRIM_Msk /*!< HSI48 oscillator smooth trimming */
|
5726 | 5733 |
|
5727 | 5734 | /******************* Bit definition for CRS_CFGR register *********************/
|
@@ -9270,13 +9277,15 @@ typedef struct
|
9270 | 9277 |
|
9271 | 9278 | /*!< HSITRIM configuration */
|
9272 | 9279 | #define RCC_ICSCR_HSITRIM_Pos (24U)
|
9273 |
| -#define RCC_ICSCR_HSITRIM_Msk (0x1FUL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x1F000000 */ |
9274 |
| -#define RCC_ICSCR_HSITRIM RCC_ICSCR_HSITRIM_Msk /*!< HSITRIM[4:0] bits */ |
| 9280 | +#define RCC_ICSCR_HSITRIM_Msk (0x7FUL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x7F000000 */ |
| 9281 | +#define RCC_ICSCR_HSITRIM RCC_ICSCR_HSITRIM_Msk /*!< HSITRIM[6:0] bits */ |
9275 | 9282 | #define RCC_ICSCR_HSITRIM_0 (0x01UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x01000000 */
|
9276 | 9283 | #define RCC_ICSCR_HSITRIM_1 (0x02UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x02000000 */
|
9277 | 9284 | #define RCC_ICSCR_HSITRIM_2 (0x04UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x04000000 */
|
9278 | 9285 | #define RCC_ICSCR_HSITRIM_3 (0x08UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x08000000 */
|
9279 | 9286 | #define RCC_ICSCR_HSITRIM_4 (0x10UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x10000000 */
|
| 9287 | +#define RCC_ICSCR_HSITRIM_5 (0x20UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x20000000 */ |
| 9288 | +#define RCC_ICSCR_HSITRIM_6 (0x40UL << RCC_ICSCR_HSITRIM_Pos) /*!< 0x40000000 */ |
9280 | 9289 |
|
9281 | 9290 | /******************** Bit definition for RCC_CFGR register ******************/
|
9282 | 9291 | /*!< SW configuration */
|
|
0 commit comments