system_stm32wbxx.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /**
  2. ******************************************************************************
  3. * @file system_stm32wbxx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS Cortex Device System Source File for STM32WBxx devices.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2019-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 stm32wbxx_system
  22. * @{
  23. */
  24. /**
  25. * @brief Define to prevent recursive inclusion
  26. */
  27. #ifndef __SYSTEM_STM32WBXX_H
  28. #define __SYSTEM_STM32WBXX_H
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. #include <stdint.h>
  33. /** @addtogroup STM32WBxx_System_Includes
  34. * @{
  35. */
  36. /**
  37. * @}
  38. */
  39. /** @addtogroup STM32WBxx_System_Exported_types
  40. * @{
  41. */
  42. /* The SystemCoreClock 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 */
  51. extern const uint32_t AHBPrescTable[16]; /*!< AHB prescalers table values */
  52. extern const uint32_t APBPrescTable[8]; /*!< APB prescalers table values */
  53. extern const uint32_t MSIRangeTable[16]; /*!< MSI ranges table values */
  54. #if defined(STM32WB55xx) || defined(STM32WB5Mxx) || defined(STM32WB35xx) || defined (STM32WB15xx) || defined (STM32WB1Mxx)
  55. extern const uint32_t SmpsPrescalerTable[4][6]; /*!< SMPS factor ranges table values */
  56. #endif
  57. /**
  58. * @}
  59. */
  60. /** @addtogroup STM32WBxx_System_Exported_Constants
  61. * @{
  62. */
  63. /**
  64. * @}
  65. */
  66. /** @addtogroup STM32WBxx_System_Exported_Macros
  67. * @{
  68. */
  69. /**
  70. * @}
  71. */
  72. /** @addtogroup STM32WBxx_System_Exported_Functions
  73. * @{
  74. */
  75. extern void SystemInit(void);
  76. extern void SystemCoreClockUpdate(void);
  77. /**
  78. * @}
  79. */
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif /*__SYSTEM_STM32WBXX_H */
  84. /**
  85. * @}
  86. */
  87. /**
  88. * @}
  89. */