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/system_stm32l1xx.h@189:f392fc9709a3, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 22:31:08 2019 +0000
- Revision:
- 189:f392fc9709a3
- Parent:
- 184:08ed48f1de7f
mbed library release version 165
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 system_stm32l1xx.h |
AnnaBridge | 181:57724642e740 | 4 | * @author MCD Application Team |
AnnaBridge | 181:57724642e740 | 5 | * @brief CMSIS Cortex-M3 Device System Source File for STM32L1xx devices. |
AnnaBridge | 181:57724642e740 | 6 | ****************************************************************************** |
AnnaBridge | 181:57724642e740 | 7 | * @attention |
AnnaBridge | 181:57724642e740 | 8 | * |
AnnaBridge | 184:08ed48f1de7f | 9 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
AnnaBridge | 181:57724642e740 | 10 | * |
AnnaBridge | 181:57724642e740 | 11 | * Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 181:57724642e740 | 12 | * are permitted provided that the following conditions are met: |
AnnaBridge | 181:57724642e740 | 13 | * 1. Redistributions of source code must retain the above copyright notice, |
AnnaBridge | 181:57724642e740 | 14 | * this list of conditions and the following disclaimer. |
AnnaBridge | 181:57724642e740 | 15 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
AnnaBridge | 181:57724642e740 | 16 | * this list of conditions and the following disclaimer in the documentation |
AnnaBridge | 181:57724642e740 | 17 | * and/or other materials provided with the distribution. |
AnnaBridge | 181:57724642e740 | 18 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
AnnaBridge | 181:57724642e740 | 19 | * may be used to endorse or promote products derived from this software |
AnnaBridge | 181:57724642e740 | 20 | * without specific prior written permission. |
AnnaBridge | 181:57724642e740 | 21 | * |
AnnaBridge | 181:57724642e740 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
AnnaBridge | 181:57724642e740 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
AnnaBridge | 181:57724642e740 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 181:57724642e740 | 25 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
AnnaBridge | 181:57724642e740 | 26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
AnnaBridge | 181:57724642e740 | 27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
AnnaBridge | 181:57724642e740 | 28 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
AnnaBridge | 181:57724642e740 | 29 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
AnnaBridge | 181:57724642e740 | 30 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
AnnaBridge | 181:57724642e740 | 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 181:57724642e740 | 32 | * |
AnnaBridge | 181:57724642e740 | 33 | ****************************************************************************** |
AnnaBridge | 181:57724642e740 | 34 | */ |
AnnaBridge | 181:57724642e740 | 35 | |
AnnaBridge | 181:57724642e740 | 36 | /** @addtogroup CMSIS |
AnnaBridge | 181:57724642e740 | 37 | * @{ |
AnnaBridge | 181:57724642e740 | 38 | */ |
AnnaBridge | 181:57724642e740 | 39 | |
AnnaBridge | 181:57724642e740 | 40 | /** @addtogroup stm32l1xx_system |
AnnaBridge | 181:57724642e740 | 41 | * @{ |
AnnaBridge | 181:57724642e740 | 42 | */ |
AnnaBridge | 181:57724642e740 | 43 | |
AnnaBridge | 181:57724642e740 | 44 | /** |
AnnaBridge | 181:57724642e740 | 45 | * @brief Define to prevent recursive inclusion |
AnnaBridge | 181:57724642e740 | 46 | */ |
AnnaBridge | 181:57724642e740 | 47 | #ifndef __SYSTEM_STM32L1XX_H |
AnnaBridge | 181:57724642e740 | 48 | #define __SYSTEM_STM32L1XX_H |
AnnaBridge | 181:57724642e740 | 49 | |
AnnaBridge | 181:57724642e740 | 50 | #ifdef __cplusplus |
AnnaBridge | 181:57724642e740 | 51 | extern "C" { |
AnnaBridge | 181:57724642e740 | 52 | #endif |
AnnaBridge | 181:57724642e740 | 53 | |
AnnaBridge | 181:57724642e740 | 54 | /** @addtogroup STM32L1xx_System_Includes |
AnnaBridge | 181:57724642e740 | 55 | * @{ |
AnnaBridge | 181:57724642e740 | 56 | */ |
AnnaBridge | 181:57724642e740 | 57 | |
AnnaBridge | 181:57724642e740 | 58 | /** |
AnnaBridge | 181:57724642e740 | 59 | * @} |
AnnaBridge | 181:57724642e740 | 60 | */ |
AnnaBridge | 181:57724642e740 | 61 | |
AnnaBridge | 181:57724642e740 | 62 | |
AnnaBridge | 181:57724642e740 | 63 | /** @addtogroup STM32L1xx_System_Exported_types |
AnnaBridge | 181:57724642e740 | 64 | * @{ |
AnnaBridge | 181:57724642e740 | 65 | */ |
AnnaBridge | 181:57724642e740 | 66 | /* This variable is updated in three ways: |
AnnaBridge | 181:57724642e740 | 67 | 1) by calling CMSIS function SystemCoreClockUpdate() |
AnnaBridge | 181:57724642e740 | 68 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq() |
AnnaBridge | 181:57724642e740 | 69 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency |
AnnaBridge | 181:57724642e740 | 70 | Note: If you use this function to configure the system clock; then there |
AnnaBridge | 181:57724642e740 | 71 | is no need to call the 2 first functions listed above, since SystemCoreClock |
AnnaBridge | 181:57724642e740 | 72 | variable is updated automatically. |
AnnaBridge | 181:57724642e740 | 73 | */ |
AnnaBridge | 181:57724642e740 | 74 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
AnnaBridge | 181:57724642e740 | 75 | /* |
AnnaBridge | 181:57724642e740 | 76 | */ |
AnnaBridge | 181:57724642e740 | 77 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ |
AnnaBridge | 181:57724642e740 | 78 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ |
AnnaBridge | 181:57724642e740 | 79 | extern const uint8_t PLLMulTable[9]; /*!< PLL multipiers table values */ |
AnnaBridge | 181:57724642e740 | 80 | |
AnnaBridge | 181:57724642e740 | 81 | /** |
AnnaBridge | 181:57724642e740 | 82 | * @} |
AnnaBridge | 181:57724642e740 | 83 | */ |
AnnaBridge | 181:57724642e740 | 84 | |
AnnaBridge | 181:57724642e740 | 85 | /** @addtogroup STM32L1xx_System_Exported_Constants |
AnnaBridge | 181:57724642e740 | 86 | * @{ |
AnnaBridge | 181:57724642e740 | 87 | */ |
AnnaBridge | 181:57724642e740 | 88 | |
AnnaBridge | 181:57724642e740 | 89 | /** |
AnnaBridge | 181:57724642e740 | 90 | * @} |
AnnaBridge | 181:57724642e740 | 91 | */ |
AnnaBridge | 181:57724642e740 | 92 | |
AnnaBridge | 181:57724642e740 | 93 | /** @addtogroup STM32L1xx_System_Exported_Macros |
AnnaBridge | 181:57724642e740 | 94 | * @{ |
AnnaBridge | 181:57724642e740 | 95 | */ |
AnnaBridge | 181:57724642e740 | 96 | |
AnnaBridge | 181:57724642e740 | 97 | /** |
AnnaBridge | 181:57724642e740 | 98 | * @} |
AnnaBridge | 181:57724642e740 | 99 | */ |
AnnaBridge | 181:57724642e740 | 100 | |
AnnaBridge | 181:57724642e740 | 101 | /** @addtogroup STM32L1xx_System_Exported_Functions |
AnnaBridge | 181:57724642e740 | 102 | * @{ |
AnnaBridge | 181:57724642e740 | 103 | */ |
AnnaBridge | 181:57724642e740 | 104 | |
AnnaBridge | 181:57724642e740 | 105 | extern void SystemInit(void); |
AnnaBridge | 181:57724642e740 | 106 | extern void SystemCoreClockUpdate(void); |
AnnaBridge | 181:57724642e740 | 107 | extern void SetSysClock(void); |
AnnaBridge | 181:57724642e740 | 108 | |
AnnaBridge | 181:57724642e740 | 109 | /** |
AnnaBridge | 181:57724642e740 | 110 | * @} |
AnnaBridge | 181:57724642e740 | 111 | */ |
AnnaBridge | 181:57724642e740 | 112 | |
AnnaBridge | 181:57724642e740 | 113 | #ifdef __cplusplus |
AnnaBridge | 181:57724642e740 | 114 | } |
AnnaBridge | 181:57724642e740 | 115 | #endif |
AnnaBridge | 181:57724642e740 | 116 | |
AnnaBridge | 181:57724642e740 | 117 | #endif /*__SYSTEM_STM32L1XX_H */ |
AnnaBridge | 181:57724642e740 | 118 | |
AnnaBridge | 181:57724642e740 | 119 | /** |
AnnaBridge | 181:57724642e740 | 120 | * @} |
AnnaBridge | 181:57724642e740 | 121 | */ |
AnnaBridge | 181:57724642e740 | 122 | |
AnnaBridge | 181:57724642e740 | 123 | /** |
AnnaBridge | 181:57724642e740 | 124 | * @} |
AnnaBridge | 181:57724642e740 | 125 | */ |
AnnaBridge | 181:57724642e740 | 126 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |