1 /**
2   ******************************************************************************
3   * @file    system_stm32mp1xx.h
4   * @author  MCD Application Team
5   * @brief   CMSIS Cortex-Mx Device System Source File for STM32MP1xx devices.
6   ******************************************************************************
7   * @attention
8   *
9   * Copyright (c) 2019 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 
19 /** @addtogroup CMSIS
20   * @{
21   */
22 
23 /** @addtogroup stm32mp1xx_system
24   * @{
25   */
26 
27 /**
28   * @brief Define to prevent recursive inclusion
29   */
30 #ifndef __SYSTEM_STM32MP1XX_H
31 #define __SYSTEM_STM32MP1XX_H
32 
33 #ifdef __cplusplus
34  extern "C" {
35 #endif
36 
37 
38 /** @addtogroup STM32MP1xx_System_Includes
39   * @{
40   */
41 
42 /**
43   * @}
44   */
45 
46 
47 /** @addtogroup STM32MP1xx_System_Exported_types
48   * @{
49   */
50   /* This variable is updated in three ways:
51       1) by calling CMSIS function SystemCoreClockUpdate()
52       2) by calling HAL API function HAL_RCC_GetSysClockFreq()
53       3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
54          Note: If you use this function to configure the system clock; then there
55                is no need to call the 2 first functions listed above, since SystemCoreClock
56                variable is updated automatically.
57   */
58 extern uint32_t SystemCoreClock;          /*!< System Core1 Clock Frequency  */
59 extern uint32_t SystemCore1Clock;         /*!< System Core1 Clock Frequency  */
60 extern uint32_t SystemCore2Clock;         /*!< System Core2 Clock Frequency  */
61 
62 /**
63   * @}
64   */
65 
66 /** @addtogroup STM32MP1xx_System_Exported_Constants
67   * @{
68   */
69 
70 /**
71   * @}
72   */
73 
74 /** @addtogroup STM32MP1xx_System_Exported_Macros
75   * @{
76   */
77 
78 /**
79   * @}
80   */
81 
82 /** @addtogroup STM32MP1xx_System_Exported_Functions
83   * @{
84   */
85 
86 extern void SystemInit(void);
87 extern void SystemCoreClockUpdate(void);
88 /**
89   * @}
90   */
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /*__SYSTEM_STM32MP1XX_H */
97 
98 /**
99   * @}
100   */
101 
102 /**
103   * @}
104   */
105