system_stm32f7xx.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /**
  2. ******************************************************************************
  3. * @file system_stm32f7xx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS Cortex-M7 Device System Source File for STM32F7xx devices.
  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 stm32f7xx_system
  22. * @{
  23. */
  24. /**
  25. * @brief Define to prevent recursive inclusion
  26. */
  27. #ifndef __SYSTEM_STM32F7XX_H
  28. #define __SYSTEM_STM32F7XX_H
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. /** @addtogroup STM32F7xx_System_Includes
  33. * @{
  34. */
  35. /**
  36. * @}
  37. */
  38. /** @addtogroup STM32F7xx_System_Exported_Variables
  39. * @{
  40. */
  41. /* The SystemCoreClock 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. extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
  51. extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
  52. /**
  53. * @}
  54. */
  55. /** @addtogroup STM32F7xx_System_Exported_Constants
  56. * @{
  57. */
  58. /**
  59. * @}
  60. */
  61. /** @addtogroup STM32F7xx_System_Exported_Macros
  62. * @{
  63. */
  64. /**
  65. * @}
  66. */
  67. /** @addtogroup STM32F7xx_System_Exported_Functions
  68. * @{
  69. */
  70. extern void SystemInit(void);
  71. extern void SystemCoreClockUpdate(void);
  72. /**
  73. * @}
  74. */
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78. #endif /*__SYSTEM_STM32F7XX_H */
  79. /**
  80. * @}
  81. */
  82. /**
  83. * @}
  84. */