system_stm32h7rsxx.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. ******************************************************************************
  3. * @file system_stm32h7rsxx.h
  4. * @author MCD Application Team
  5. * @brief CMSIS Cortex-M7 Device System Source File for STM32H7RSxx devices.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2022 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 STM32H7RSxx_system
  22. * @{
  23. */
  24. #ifndef SYSTEM_STM32H7RSXX_H
  25. #define SYSTEM_STM32H7RSXX_H
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /** @addtogroup STM32H7RSxx_System_Includes
  30. * @{
  31. */
  32. #include <stdint.h>
  33. /**
  34. * @}
  35. */
  36. /** @addtogroup STM32H7RSxx_System_Exported_Variables
  37. * @{
  38. */
  39. /* The SystemCoreClock variable is updated in three ways:
  40. 1) by calling CMSIS function SystemCoreClockUpdate()
  41. 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
  42. 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
  43. Note: If you use this function to configure the system clock; then there
  44. is no need to call the 2 first functions listed above, since SystemCoreClock
  45. variable is updated automatically.
  46. */
  47. extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
  48. /**
  49. * @}
  50. */
  51. /** @addtogroup STM32H7RSxx_System_Exported_Functions
  52. * @{
  53. */
  54. /**
  55. \brief Setup the microcontroller system.
  56. Initialize the System and update the SystemCoreClock variable.
  57. */
  58. extern void SystemInit (void);
  59. /**
  60. \brief Update SystemCoreClock variable.
  61. Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
  62. */
  63. extern void SystemCoreClockUpdate (void);
  64. /**
  65. * @}
  66. */
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif /* SYSTEM_STM32H7RSXX_H */
  71. /**
  72. * @}
  73. */
  74. /**
  75. * @}
  76. */