001
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/device/system_stm32f4xx.h@0:13413ea9a877, 2022-06-12 (annotated)
- Committer:
- ganlikun
- Date:
- Sun Jun 12 14:02:44 2022 +0000
- Revision:
- 0:13413ea9a877
00
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ganlikun | 0:13413ea9a877 | 1 | /** |
ganlikun | 0:13413ea9a877 | 2 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 3 | * @file system_stm32f4xx.h |
ganlikun | 0:13413ea9a877 | 4 | * @author MCD Application Team |
ganlikun | 0:13413ea9a877 | 5 | * @version V2.6.1 |
ganlikun | 0:13413ea9a877 | 6 | * @date 14-February-2017 |
ganlikun | 0:13413ea9a877 | 7 | * @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices. |
ganlikun | 0:13413ea9a877 | 8 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 9 | * @attention |
ganlikun | 0:13413ea9a877 | 10 | * |
ganlikun | 0:13413ea9a877 | 11 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
ganlikun | 0:13413ea9a877 | 12 | * |
ganlikun | 0:13413ea9a877 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
ganlikun | 0:13413ea9a877 | 14 | * are permitted provided that the following conditions are met: |
ganlikun | 0:13413ea9a877 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
ganlikun | 0:13413ea9a877 | 16 | * this list of conditions and the following disclaimer. |
ganlikun | 0:13413ea9a877 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
ganlikun | 0:13413ea9a877 | 18 | * this list of conditions and the following disclaimer in the documentation |
ganlikun | 0:13413ea9a877 | 19 | * and/or other materials provided with the distribution. |
ganlikun | 0:13413ea9a877 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
ganlikun | 0:13413ea9a877 | 21 | * may be used to endorse or promote products derived from this software |
ganlikun | 0:13413ea9a877 | 22 | * without specific prior written permission. |
ganlikun | 0:13413ea9a877 | 23 | * |
ganlikun | 0:13413ea9a877 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
ganlikun | 0:13413ea9a877 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
ganlikun | 0:13413ea9a877 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
ganlikun | 0:13413ea9a877 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
ganlikun | 0:13413ea9a877 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
ganlikun | 0:13413ea9a877 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
ganlikun | 0:13413ea9a877 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
ganlikun | 0:13413ea9a877 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
ganlikun | 0:13413ea9a877 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
ganlikun | 0:13413ea9a877 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
ganlikun | 0:13413ea9a877 | 34 | * |
ganlikun | 0:13413ea9a877 | 35 | ****************************************************************************** |
ganlikun | 0:13413ea9a877 | 36 | */ |
ganlikun | 0:13413ea9a877 | 37 | |
ganlikun | 0:13413ea9a877 | 38 | /** @addtogroup CMSIS |
ganlikun | 0:13413ea9a877 | 39 | * @{ |
ganlikun | 0:13413ea9a877 | 40 | */ |
ganlikun | 0:13413ea9a877 | 41 | |
ganlikun | 0:13413ea9a877 | 42 | /** @addtogroup stm32f4xx_system |
ganlikun | 0:13413ea9a877 | 43 | * @{ |
ganlikun | 0:13413ea9a877 | 44 | */ |
ganlikun | 0:13413ea9a877 | 45 | |
ganlikun | 0:13413ea9a877 | 46 | /** |
ganlikun | 0:13413ea9a877 | 47 | * @brief Define to prevent recursive inclusion |
ganlikun | 0:13413ea9a877 | 48 | */ |
ganlikun | 0:13413ea9a877 | 49 | #ifndef __SYSTEM_STM32F4XX_H |
ganlikun | 0:13413ea9a877 | 50 | #define __SYSTEM_STM32F4XX_H |
ganlikun | 0:13413ea9a877 | 51 | |
ganlikun | 0:13413ea9a877 | 52 | #ifdef __cplusplus |
ganlikun | 0:13413ea9a877 | 53 | extern "C" { |
ganlikun | 0:13413ea9a877 | 54 | #endif |
ganlikun | 0:13413ea9a877 | 55 | |
ganlikun | 0:13413ea9a877 | 56 | /** @addtogroup STM32F4xx_System_Includes |
ganlikun | 0:13413ea9a877 | 57 | * @{ |
ganlikun | 0:13413ea9a877 | 58 | */ |
ganlikun | 0:13413ea9a877 | 59 | |
ganlikun | 0:13413ea9a877 | 60 | /** |
ganlikun | 0:13413ea9a877 | 61 | * @} |
ganlikun | 0:13413ea9a877 | 62 | */ |
ganlikun | 0:13413ea9a877 | 63 | |
ganlikun | 0:13413ea9a877 | 64 | |
ganlikun | 0:13413ea9a877 | 65 | /** @addtogroup STM32F4xx_System_Exported_types |
ganlikun | 0:13413ea9a877 | 66 | * @{ |
ganlikun | 0:13413ea9a877 | 67 | */ |
ganlikun | 0:13413ea9a877 | 68 | /* This variable is updated in three ways: |
ganlikun | 0:13413ea9a877 | 69 | 1) by calling CMSIS function SystemCoreClockUpdate() |
ganlikun | 0:13413ea9a877 | 70 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq() |
ganlikun | 0:13413ea9a877 | 71 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency |
ganlikun | 0:13413ea9a877 | 72 | Note: If you use this function to configure the system clock; then there |
ganlikun | 0:13413ea9a877 | 73 | is no need to call the 2 first functions listed above, since SystemCoreClock |
ganlikun | 0:13413ea9a877 | 74 | variable is updated automatically. |
ganlikun | 0:13413ea9a877 | 75 | */ |
ganlikun | 0:13413ea9a877 | 76 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
ganlikun | 0:13413ea9a877 | 77 | |
ganlikun | 0:13413ea9a877 | 78 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ |
ganlikun | 0:13413ea9a877 | 79 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ |
ganlikun | 0:13413ea9a877 | 80 | |
ganlikun | 0:13413ea9a877 | 81 | /** |
ganlikun | 0:13413ea9a877 | 82 | * @} |
ganlikun | 0:13413ea9a877 | 83 | */ |
ganlikun | 0:13413ea9a877 | 84 | |
ganlikun | 0:13413ea9a877 | 85 | /** @addtogroup STM32F4xx_System_Exported_Constants |
ganlikun | 0:13413ea9a877 | 86 | * @{ |
ganlikun | 0:13413ea9a877 | 87 | */ |
ganlikun | 0:13413ea9a877 | 88 | |
ganlikun | 0:13413ea9a877 | 89 | /** |
ganlikun | 0:13413ea9a877 | 90 | * @} |
ganlikun | 0:13413ea9a877 | 91 | */ |
ganlikun | 0:13413ea9a877 | 92 | |
ganlikun | 0:13413ea9a877 | 93 | /** @addtogroup STM32F4xx_System_Exported_Macros |
ganlikun | 0:13413ea9a877 | 94 | * @{ |
ganlikun | 0:13413ea9a877 | 95 | */ |
ganlikun | 0:13413ea9a877 | 96 | |
ganlikun | 0:13413ea9a877 | 97 | /** |
ganlikun | 0:13413ea9a877 | 98 | * @} |
ganlikun | 0:13413ea9a877 | 99 | */ |
ganlikun | 0:13413ea9a877 | 100 | |
ganlikun | 0:13413ea9a877 | 101 | /** @addtogroup STM32F4xx_System_Exported_Functions |
ganlikun | 0:13413ea9a877 | 102 | * @{ |
ganlikun | 0:13413ea9a877 | 103 | */ |
ganlikun | 0:13413ea9a877 | 104 | |
ganlikun | 0:13413ea9a877 | 105 | extern void SystemInit(void); |
ganlikun | 0:13413ea9a877 | 106 | extern void SystemCoreClockUpdate(void); |
ganlikun | 0:13413ea9a877 | 107 | extern void SetSysClock(void); |
ganlikun | 0:13413ea9a877 | 108 | /** |
ganlikun | 0:13413ea9a877 | 109 | * @} |
ganlikun | 0:13413ea9a877 | 110 | */ |
ganlikun | 0:13413ea9a877 | 111 | |
ganlikun | 0:13413ea9a877 | 112 | #ifdef __cplusplus |
ganlikun | 0:13413ea9a877 | 113 | } |
ganlikun | 0:13413ea9a877 | 114 | #endif |
ganlikun | 0:13413ea9a877 | 115 | |
ganlikun | 0:13413ea9a877 | 116 | #endif /*__SYSTEM_STM32F4XX_H */ |
ganlikun | 0:13413ea9a877 | 117 | |
ganlikun | 0:13413ea9a877 | 118 | /** |
ganlikun | 0:13413ea9a877 | 119 | * @} |
ganlikun | 0:13413ea9a877 | 120 | */ |
ganlikun | 0:13413ea9a877 | 121 | |
ganlikun | 0:13413ea9a877 | 122 | /** |
ganlikun | 0:13413ea9a877 | 123 | * @} |
ganlikun | 0:13413ea9a877 | 124 | */ |
ganlikun | 0:13413ea9a877 | 125 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
ganlikun | 0:13413ea9a877 | 126 |