Rev 50 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 30 | mjames | 1 | /** |
| 2 | ****************************************************************************** |
||
| 3 | * @file system_stm32l1xx.h |
||
| 4 | * @author MCD Application Team |
||
| 5 | * @brief CMSIS Cortex-M3 Device System Source File for STM32L1xx devices. |
||
| 6 | ****************************************************************************** |
||
| 7 | * @attention |
||
| 8 | * |
||
| 50 | mjames | 9 | * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
| 10 | * All rights reserved.</center></h2> |
||
| 30 | mjames | 11 | * |
| 50 | mjames | 12 | * This software component is licensed by ST under BSD 3-Clause license, |
| 13 | * the "License"; You may not use this file except in compliance with the |
||
| 14 | * License. You may obtain a copy of the License at: |
||
| 15 | * opensource.org/licenses/BSD-3-Clause |
||
| 30 | mjames | 16 | * |
| 17 | ****************************************************************************** |
||
| 18 | */ |
||
| 19 | |||
| 20 | /** @addtogroup CMSIS |
||
| 21 | * @{ |
||
| 22 | */ |
||
| 23 | |||
| 24 | /** @addtogroup stm32l1xx_system |
||
| 25 | * @{ |
||
| 26 | */ |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @brief Define to prevent recursive inclusion |
||
| 30 | */ |
||
| 31 | #ifndef __SYSTEM_STM32L1XX_H |
||
| 32 | #define __SYSTEM_STM32L1XX_H |
||
| 33 | |||
| 34 | #ifdef __cplusplus |
||
| 35 | extern "C" { |
||
| 36 | #endif |
||
| 37 | |||
| 38 | /** @addtogroup STM32L1xx_System_Includes |
||
| 39 | * @{ |
||
| 40 | */ |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @} |
||
| 44 | */ |
||
| 45 | |||
| 46 | |||
| 47 | /** @addtogroup STM32L1xx_System_Exported_types |
||
| 48 | * @{ |
||
| 49 | */ |
||
| 50 | /* This variable is updated in three ways: |
||
| 51 | 1) by calling CMSIS function SystemCoreClockUpdate() |
||
| 52 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq() |
||
| 53 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency |
||
| 54 | Note: If you use this function to configure the system clock; then there |
||
| 55 | is no need to call the 2 first functions listed above, since SystemCoreClock |
||
| 56 | variable is updated automatically. |
||
| 57 | */ |
||
| 58 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
||
| 59 | /* |
||
| 60 | */ |
||
| 61 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ |
||
| 62 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ |
||
| 63 | extern const uint8_t PLLMulTable[9]; /*!< PLL multipiers table values */ |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @} |
||
| 67 | */ |
||
| 68 | |||
| 69 | /** @addtogroup STM32L1xx_System_Exported_Constants |
||
| 70 | * @{ |
||
| 71 | */ |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @} |
||
| 75 | */ |
||
| 76 | |||
| 77 | /** @addtogroup STM32L1xx_System_Exported_Macros |
||
| 78 | * @{ |
||
| 79 | */ |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @} |
||
| 83 | */ |
||
| 84 | |||
| 85 | /** @addtogroup STM32L1xx_System_Exported_Functions |
||
| 86 | * @{ |
||
| 87 | */ |
||
| 88 | |||
| 89 | extern void SystemInit(void); |
||
| 90 | extern void SystemCoreClockUpdate(void); |
||
| 91 | /** |
||
| 92 | * @} |
||
| 93 | */ |
||
| 94 | |||
| 95 | #ifdef __cplusplus |
||
| 96 | } |
||
| 97 | #endif |
||
| 98 | |||
| 99 | #endif /*__SYSTEM_STM32L1XX_H */ |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @} |
||
| 103 | */ |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @} |
||
| 107 | */ |
||
| 108 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |