system_stm32l0xx.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**
  2. ******************************************************************************
  3. * @file system_stm32l0xx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS Cortex-M0+ Device Peripheral Access Layer System Header File.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2016 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. /** @addtogroup CMSIS
  19. * @{
  20. */
  21. /** @addtogroup stm32l0xx_system
  22. * @{
  23. */
  24. /**
  25. * @brief Define to prevent recursive inclusion
  26. */
  27. #ifndef __SYSTEM_STM32L0XX_H
  28. #define __SYSTEM_STM32L0XX_H
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. /** @addtogroup STM32L0xx_System_Includes
  33. * @{
  34. */
  35. /**
  36. * @}
  37. */
  38. /** @addtogroup STM32L0xx_System_Exported_types
  39. * @{
  40. */
  41. /* This variable is updated in three ways:
  42. 1) by calling CMSIS function SystemCoreClockUpdate()
  43. 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
  44. 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
  45. Note: If you use this function to configure the system clock; then there
  46. is no need to call the 2 first functions listed above, since SystemCoreClock
  47. variable is updated automatically.
  48. */
  49. extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
  50. /*
  51. */
  52. extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
  53. extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
  54. extern const uint8_t PLLMulTable[9]; /*!< PLL multipiers table values */
  55. /**
  56. * @}
  57. */
  58. /** @addtogroup STM32L0xx_System_Exported_Constants
  59. * @{
  60. */
  61. /**
  62. * @}
  63. */
  64. /** @addtogroup STM32L0xx_System_Exported_Macros
  65. * @{
  66. */
  67. /**
  68. * @}
  69. */
  70. /** @addtogroup STM32L0xx_System_Exported_Functions
  71. * @{
  72. */
  73. extern void SystemInit(void);
  74. extern void SystemCoreClockUpdate(void);
  75. /**
  76. * @}
  77. */
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif /*__SYSTEM_STM32L0XX_H */
  82. /**
  83. * @}
  84. */
  85. /**
  86. * @}
  87. */