system_stm32wlxx.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /**
  2. ******************************************************************************
  3. * @file system_stm32wlxx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS Cortex Device System Source File for STM32WLxx devices.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2020-2021 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 stm32wlxx_system
  22. * @{
  23. */
  24. /**
  25. * @brief Define to prevent recursive inclusion
  26. */
  27. #ifndef __SYSTEM_STM32WLXX_H
  28. #define __SYSTEM_STM32WLXX_H
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. #include <stdint.h>
  33. /** @addtogroup STM32WLxx_System_Includes
  34. * @{
  35. */
  36. /**
  37. * @}
  38. */
  39. /** @addtogroup STM32WLxx_System_Exported_types
  40. * @{
  41. */
  42. /* The SystemCoreClock variable is updated in three ways:
  43. 1) from within HAL_Init()
  44. 2) by calling CMSIS function SystemCoreClockUpdate()
  45. 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
  46. */
  47. extern uint32_t SystemCoreClock; /*!< System Clock Frequency */
  48. extern const uint32_t AHBPrescTable[16]; /*!< AHB prescalers table values */
  49. extern const uint32_t APBPrescTable[8]; /*!< APB prescalers table values */
  50. extern const uint32_t MSIRangeTable[16]; /*!< MSI ranges table values */
  51. /**
  52. * @}
  53. */
  54. /** @addtogroup STM32WLxx_System_Exported_Constants
  55. * @{
  56. */
  57. /**
  58. * @}
  59. */
  60. /** @addtogroup STM32WLxx_System_Exported_Macros
  61. * @{
  62. */
  63. /**
  64. * @}
  65. */
  66. /** @addtogroup STM32WLxx_System_Exported_Functions
  67. * @{
  68. */
  69. extern void SystemInit(void);
  70. extern void SystemCoreClockUpdate(void);
  71. /**
  72. * @}
  73. */
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif /*__SYSTEM_STM32WLXX_H */
  78. /**
  79. * @}
  80. */
  81. /**
  82. * @}
  83. */