You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

system_stm32l1xx.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. *
  9. * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  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
  16. *
  17. ******************************************************************************
  18. */
  19. /** @addtogroup CMSIS
  20. * @{
  21. */
  22. /** @addtogroup stm32l1xx_system
  23. * @{
  24. */
  25. /**
  26. * @brief Define to prevent recursive inclusion
  27. */
  28. #ifndef __SYSTEM_STM32L1XX_H
  29. #define __SYSTEM_STM32L1XX_H
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. /** @addtogroup STM32L1xx_System_Includes
  34. * @{
  35. */
  36. /**
  37. * @}
  38. */
  39. /** @addtogroup STM32L1xx_System_Exported_types
  40. * @{
  41. */
  42. /* This variable is updated in three ways:
  43. 1) by calling CMSIS function SystemCoreClockUpdate()
  44. 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
  45. 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
  46. Note: If you use this function to configure the system clock; then there
  47. is no need to call the 2 first functions listed above, since SystemCoreClock
  48. variable is updated automatically.
  49. */
  50. extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
  51. /*
  52. */
  53. extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
  54. extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
  55. extern const uint8_t PLLMulTable[9]; /*!< PLL multipiers table values */
  56. /**
  57. * @}
  58. */
  59. /** @addtogroup STM32L1xx_System_Exported_Constants
  60. * @{
  61. */
  62. /**
  63. * @}
  64. */
  65. /** @addtogroup STM32L1xx_System_Exported_Macros
  66. * @{
  67. */
  68. /**
  69. * @}
  70. */
  71. /** @addtogroup STM32L1xx_System_Exported_Functions
  72. * @{
  73. */
  74. extern void SystemInit(void);
  75. extern void SystemCoreClockUpdate(void);
  76. /**
  77. * @}
  78. */
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82. #endif /*__SYSTEM_STM32L1XX_H */
  83. /**
  84. * @}
  85. */
  86. /**
  87. * @}
  88. */
  89. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/