Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
targets/TARGET_STM32L475xG_SRAM2/device/system_stm32l4xx.h@0:8f0bb79ddd48, 2021-05-04 (annotated)
- Committer:
- leothedragon
- Date:
- Tue May 04 08:55:12 2021 +0000
- Revision:
- 0:8f0bb79ddd48
nmn
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
leothedragon | 0:8f0bb79ddd48 | 1 | /** |
leothedragon | 0:8f0bb79ddd48 | 2 | ****************************************************************************** |
leothedragon | 0:8f0bb79ddd48 | 3 | * @file system_stm32l4xx.h |
leothedragon | 0:8f0bb79ddd48 | 4 | * @author MCD Application Team |
leothedragon | 0:8f0bb79ddd48 | 5 | * @brief CMSIS Cortex-M4 Device System Source File for STM32L4xx devices. |
leothedragon | 0:8f0bb79ddd48 | 6 | ****************************************************************************** |
leothedragon | 0:8f0bb79ddd48 | 7 | * @attention |
leothedragon | 0:8f0bb79ddd48 | 8 | * |
leothedragon | 0:8f0bb79ddd48 | 9 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
leothedragon | 0:8f0bb79ddd48 | 10 | * |
leothedragon | 0:8f0bb79ddd48 | 11 | * Redistribution and use in source and binary forms, with or without modification, |
leothedragon | 0:8f0bb79ddd48 | 12 | * are permitted provided that the following conditions are met: |
leothedragon | 0:8f0bb79ddd48 | 13 | * 1. Redistributions of source code must retain the above copyright notice, |
leothedragon | 0:8f0bb79ddd48 | 14 | * this list of conditions and the following disclaimer. |
leothedragon | 0:8f0bb79ddd48 | 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
leothedragon | 0:8f0bb79ddd48 | 16 | * this list of conditions and the following disclaimer in the documentation |
leothedragon | 0:8f0bb79ddd48 | 17 | * and/or other materials provided with the distribution. |
leothedragon | 0:8f0bb79ddd48 | 18 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
leothedragon | 0:8f0bb79ddd48 | 19 | * may be used to endorse or promote products derived from this software |
leothedragon | 0:8f0bb79ddd48 | 20 | * without specific prior written permission. |
leothedragon | 0:8f0bb79ddd48 | 21 | * |
leothedragon | 0:8f0bb79ddd48 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
leothedragon | 0:8f0bb79ddd48 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
leothedragon | 0:8f0bb79ddd48 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
leothedragon | 0:8f0bb79ddd48 | 25 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
leothedragon | 0:8f0bb79ddd48 | 26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
leothedragon | 0:8f0bb79ddd48 | 27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
leothedragon | 0:8f0bb79ddd48 | 28 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
leothedragon | 0:8f0bb79ddd48 | 29 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
leothedragon | 0:8f0bb79ddd48 | 30 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
leothedragon | 0:8f0bb79ddd48 | 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
leothedragon | 0:8f0bb79ddd48 | 32 | * |
leothedragon | 0:8f0bb79ddd48 | 33 | ****************************************************************************** |
leothedragon | 0:8f0bb79ddd48 | 34 | */ |
leothedragon | 0:8f0bb79ddd48 | 35 | |
leothedragon | 0:8f0bb79ddd48 | 36 | /** @addtogroup CMSIS |
leothedragon | 0:8f0bb79ddd48 | 37 | * @{ |
leothedragon | 0:8f0bb79ddd48 | 38 | */ |
leothedragon | 0:8f0bb79ddd48 | 39 | |
leothedragon | 0:8f0bb79ddd48 | 40 | /** @addtogroup stm32l4xx_system |
leothedragon | 0:8f0bb79ddd48 | 41 | * @{ |
leothedragon | 0:8f0bb79ddd48 | 42 | */ |
leothedragon | 0:8f0bb79ddd48 | 43 | |
leothedragon | 0:8f0bb79ddd48 | 44 | /** |
leothedragon | 0:8f0bb79ddd48 | 45 | * @brief Define to prevent recursive inclusion |
leothedragon | 0:8f0bb79ddd48 | 46 | */ |
leothedragon | 0:8f0bb79ddd48 | 47 | #ifndef __SYSTEM_STM32L4XX_H |
leothedragon | 0:8f0bb79ddd48 | 48 | #define __SYSTEM_STM32L4XX_H |
leothedragon | 0:8f0bb79ddd48 | 49 | |
leothedragon | 0:8f0bb79ddd48 | 50 | #ifdef __cplusplus |
leothedragon | 0:8f0bb79ddd48 | 51 | extern "C" { |
leothedragon | 0:8f0bb79ddd48 | 52 | #endif |
leothedragon | 0:8f0bb79ddd48 | 53 | |
leothedragon | 0:8f0bb79ddd48 | 54 | /** @addtogroup STM32L4xx_System_Includes |
leothedragon | 0:8f0bb79ddd48 | 55 | * @{ |
leothedragon | 0:8f0bb79ddd48 | 56 | */ |
leothedragon | 0:8f0bb79ddd48 | 57 | |
leothedragon | 0:8f0bb79ddd48 | 58 | /** |
leothedragon | 0:8f0bb79ddd48 | 59 | * @} |
leothedragon | 0:8f0bb79ddd48 | 60 | */ |
leothedragon | 0:8f0bb79ddd48 | 61 | |
leothedragon | 0:8f0bb79ddd48 | 62 | |
leothedragon | 0:8f0bb79ddd48 | 63 | /** @addtogroup STM32L4xx_System_Exported_Variables |
leothedragon | 0:8f0bb79ddd48 | 64 | * @{ |
leothedragon | 0:8f0bb79ddd48 | 65 | */ |
leothedragon | 0:8f0bb79ddd48 | 66 | /* The SystemCoreClock variable is updated in three ways: |
leothedragon | 0:8f0bb79ddd48 | 67 | 1) by calling CMSIS function SystemCoreClockUpdate() |
leothedragon | 0:8f0bb79ddd48 | 68 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq() |
leothedragon | 0:8f0bb79ddd48 | 69 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency |
leothedragon | 0:8f0bb79ddd48 | 70 | Note: If you use this function to configure the system clock; then there |
leothedragon | 0:8f0bb79ddd48 | 71 | is no need to call the 2 first functions listed above, since SystemCoreClock |
leothedragon | 0:8f0bb79ddd48 | 72 | variable is updated automatically. |
leothedragon | 0:8f0bb79ddd48 | 73 | */ |
leothedragon | 0:8f0bb79ddd48 | 74 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
leothedragon | 0:8f0bb79ddd48 | 75 | |
leothedragon | 0:8f0bb79ddd48 | 76 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ |
leothedragon | 0:8f0bb79ddd48 | 77 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ |
leothedragon | 0:8f0bb79ddd48 | 78 | extern const uint32_t MSIRangeTable[12]; /*!< MSI ranges table values */ |
leothedragon | 0:8f0bb79ddd48 | 79 | |
leothedragon | 0:8f0bb79ddd48 | 80 | /** |
leothedragon | 0:8f0bb79ddd48 | 81 | * @} |
leothedragon | 0:8f0bb79ddd48 | 82 | */ |
leothedragon | 0:8f0bb79ddd48 | 83 | |
leothedragon | 0:8f0bb79ddd48 | 84 | /** @addtogroup STM32L4xx_System_Exported_Constants |
leothedragon | 0:8f0bb79ddd48 | 85 | * @{ |
leothedragon | 0:8f0bb79ddd48 | 86 | */ |
leothedragon | 0:8f0bb79ddd48 | 87 | |
leothedragon | 0:8f0bb79ddd48 | 88 | /** |
leothedragon | 0:8f0bb79ddd48 | 89 | * @} |
leothedragon | 0:8f0bb79ddd48 | 90 | */ |
leothedragon | 0:8f0bb79ddd48 | 91 | |
leothedragon | 0:8f0bb79ddd48 | 92 | /** @addtogroup STM32L4xx_System_Exported_Macros |
leothedragon | 0:8f0bb79ddd48 | 93 | * @{ |
leothedragon | 0:8f0bb79ddd48 | 94 | */ |
leothedragon | 0:8f0bb79ddd48 | 95 | |
leothedragon | 0:8f0bb79ddd48 | 96 | /** |
leothedragon | 0:8f0bb79ddd48 | 97 | * @} |
leothedragon | 0:8f0bb79ddd48 | 98 | */ |
leothedragon | 0:8f0bb79ddd48 | 99 | |
leothedragon | 0:8f0bb79ddd48 | 100 | /** @addtogroup STM32L4xx_System_Exported_Functions |
leothedragon | 0:8f0bb79ddd48 | 101 | * @{ |
leothedragon | 0:8f0bb79ddd48 | 102 | */ |
leothedragon | 0:8f0bb79ddd48 | 103 | |
leothedragon | 0:8f0bb79ddd48 | 104 | extern void SystemInit(void); |
leothedragon | 0:8f0bb79ddd48 | 105 | extern void SystemCoreClockUpdate(void); |
leothedragon | 0:8f0bb79ddd48 | 106 | extern void SetSysClock(void); |
leothedragon | 0:8f0bb79ddd48 | 107 | |
leothedragon | 0:8f0bb79ddd48 | 108 | /** |
leothedragon | 0:8f0bb79ddd48 | 109 | * @} |
leothedragon | 0:8f0bb79ddd48 | 110 | */ |
leothedragon | 0:8f0bb79ddd48 | 111 | |
leothedragon | 0:8f0bb79ddd48 | 112 | #ifdef __cplusplus |
leothedragon | 0:8f0bb79ddd48 | 113 | } |
leothedragon | 0:8f0bb79ddd48 | 114 | #endif |
leothedragon | 0:8f0bb79ddd48 | 115 | |
leothedragon | 0:8f0bb79ddd48 | 116 | #endif /*__SYSTEM_STM32L4XX_H */ |
leothedragon | 0:8f0bb79ddd48 | 117 | |
leothedragon | 0:8f0bb79ddd48 | 118 | /** |
leothedragon | 0:8f0bb79ddd48 | 119 | * @} |
leothedragon | 0:8f0bb79ddd48 | 120 | */ |
leothedragon | 0:8f0bb79ddd48 | 121 | |
leothedragon | 0:8f0bb79ddd48 | 122 | /** |
leothedragon | 0:8f0bb79ddd48 | 123 | * @} |
leothedragon | 0:8f0bb79ddd48 | 124 | */ |
leothedragon | 0:8f0bb79ddd48 | 125 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |