STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
system_stm32h7xx.h
Go to the documentation of this file.
1/**
2 ******************************************************************************
3 * @file system_stm32h7xx.h
4 * @author MCD Application Team
5 * @brief CMSIS Cortex-Mx Device System Source File for STM32H7xx devices.
6 ******************************************************************************
7 * @attention
8 *
9 * Copyright (c) 2017 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 stm32h7xx_system
24 * @{
25 */
26
27/**
28 * @brief Define to prevent recursive inclusion
29 */
30#ifndef SYSTEM_STM32H7XX_H
31#define SYSTEM_STM32H7XX_H
32
33#ifdef __cplusplus
34 extern "C" {
35#endif
36
37/** @addtogroup STM32H7xx_System_Includes
38 * @{
39 */
40
41/**
42 * @}
43 */
44
45
46/** @addtogroup STM32H7xx_System_Exported_types
47 * @{
48 */
49 /* This variable is updated in three ways:
50 1) by calling CMSIS function SystemCoreClockUpdate()
51 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
52 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
53 Note: If you use this function to configure the system clock; then there
54 is no need to call the 2 first functions listed above, since SystemCoreClock
55 variable is updated automatically.
56 */
57extern uint32_t SystemCoreClock; /*!< System Domain1 Clock Frequency */
58extern uint32_t SystemD2Clock; /*!< System Domain2 Clock Frequency */
59extern const uint8_t D1CorePrescTable[16] ; /*!< D1CorePrescTable prescalers table values */
60
61/**
62 * @}
63 */
64
65/** @addtogroup STM32H7xx_System_Exported_Constants
66 * @{
67 */
68
69/**
70 * @}
71 */
72
73/** @addtogroup STM32H7xx_System_Exported_Macros
74 * @{
75 */
76
77/**
78 * @}
79 */
80
81/** @addtogroup STM32H7xx_System_Exported_Functions
82 * @{
83 */
84
85extern void SystemInit(void);
86extern void SystemCoreClockUpdate(void);
87#if defined(__GNUC__) && !defined(__ARMCC_VERSION)
88 extern void ExitRun0Mode(void) __attribute__((optimize("Os")));
89#else
90 extern void ExitRun0Mode(void);
91#endif /* __GNUC__ */
92/**
93 * @}
94 */
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* SYSTEM_STM32H7XX_H */
101
102/**
103 * @}
104 */
105
106/**
107 * @}
108 */
void SystemInit(void)
Setup the microcontroller system Initialize the FPU setting and vector table location configuration.
void ExitRun0Mode(void)
Exit Run* mode and Configure the system Power Supply.
void SystemCoreClockUpdate(void)
Update SystemCoreClock variable according to Clock Register Values.
uint32_t SystemD2Clock
System Domain2 Clock Frequency.
uint32_t SystemCoreClock
System Domain1 Clock Frequency.
const uint8_t D1CorePrescTable[16]
D1CorePrescTable prescalers table values.
__attribute__((weak))
Definition syscalls.c:67