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.
 
 
 

114 lines
2.6 KiB

  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. * <h2><center>&copy; Copyright (c) 2019 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 stm32wbxx_system
  23. * @{
  24. */
  25. /**
  26. * @brief Define to prevent recursive inclusion
  27. */
  28. #ifndef __SYSTEM_STM32WBXX_H
  29. #define __SYSTEM_STM32WBXX_H
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. #include <stdint.h>
  34. /** @addtogroup STM32WBxx_System_Includes
  35. * @{
  36. */
  37. /**
  38. * @}
  39. */
  40. /** @addtogroup STM32WBxx_System_Exported_types
  41. * @{
  42. */
  43. /* The SystemCoreClock variable is updated in three ways:
  44. 1) by calling CMSIS function SystemCoreClockUpdate()
  45. 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
  46. 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
  47. Note: If you use this function to configure the system clock; then there
  48. is no need to call the 2 first functions listed above, since SystemCoreClock
  49. variable is updated automatically.
  50. */
  51. extern uint32_t SystemCoreClock; /*!< System Clock Frequency */
  52. extern const uint32_t AHBPrescTable[16]; /*!< AHB prescalers table values */
  53. extern const uint32_t APBPrescTable[8]; /*!< APB prescalers table values */
  54. extern const uint32_t MSIRangeTable[16]; /*!< MSI ranges table values */
  55. #if defined(STM32WB55xx) || defined(STM32WB5Mxx) || defined(STM32WB35xx)
  56. extern const uint32_t SmpsPrescalerTable[4][6]; /*!< SMPS factor ranges table values */
  57. #endif
  58. /**
  59. * @}
  60. */
  61. /** @addtogroup STM32WBxx_System_Exported_Constants
  62. * @{
  63. */
  64. /**
  65. * @}
  66. */
  67. /** @addtogroup STM32WBxx_System_Exported_Macros
  68. * @{
  69. */
  70. /**
  71. * @}
  72. */
  73. /** @addtogroup STM32WBxx_System_Exported_Functions
  74. * @{
  75. */
  76. extern void SystemInit(void);
  77. extern void SystemCoreClockUpdate(void);
  78. /**
  79. * @}
  80. */
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84. #endif /*__SYSTEM_STM32WBXX_H */
  85. /**
  86. * @}
  87. */
  88. /**
  89. * @}
  90. */
  91. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/