diff options
author | combolek <4743344+combolek@users.noreply.github.com> | 2020-06-23 07:52:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 10:52:15 -0400 |
commit | 7cab732ae9baf5cf6da716f06dc82942426a1712 (patch) | |
tree | ab3f2fbd5ab1613f26c32008590796bb7ca72ef7 /lib/stm32f2/include/system_stm32f2xx.h | |
parent | a4c31bafb0c86b679c591fc0ab693b4fdef6114e (diff) | |
download | kutter-7cab732ae9baf5cf6da716f06dc82942426a1712.tar.gz kutter-7cab732ae9baf5cf6da716f06dc82942426a1712.tar.xz kutter-7cab732ae9baf5cf6da716f06dc82942426a1712.zip |
stm32: Initial support for stm32f2 (#3001)
Initial support for stm32f2 in general and STM32F207 in particular.
Boots up and communicates on STM32F207VC.
Signed-off-by: Boleslaw Ciesielski <combolek@users.noreply.github.com>
Diffstat (limited to 'lib/stm32f2/include/system_stm32f2xx.h')
-rw-r--r-- | lib/stm32f2/include/system_stm32f2xx.h | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/lib/stm32f2/include/system_stm32f2xx.h b/lib/stm32f2/include/system_stm32f2xx.h new file mode 100644 index 00000000..ac0d6518 --- /dev/null +++ b/lib/stm32f2/include/system_stm32f2xx.h @@ -0,0 +1,106 @@ +/** + ****************************************************************************** + * @file system_stm32f2xx.h + * @author MCD Application Team + * @brief CMSIS Cortex-M3 Device System Source File for STM32F2xx devices. + **************************************************************************** + * @attention + * + * <h2><center>© Copyright (c) 2017 STMicroelectronics. + * All rights reserved.</center></h2> + * + * This software component is licensed by ST under BSD 3-Clause license, + * the "License"; You may not use this file except in compliance with the + * License. You may obtain a copy of the License at: + * opensource.org/licenses/BSD-3-Clause + * + ****************************************************************************** + */ + +/** @addtogroup CMSIS + * @{ + */ + +/** @addtogroup stm32f2xx_system + * @{ + */ + +/** + * @brief Define to prevent recursive inclusion + */ +#ifndef __SYSTEM_STM32F2XX_H +#define __SYSTEM_STM32F2XX_H + +#ifdef __cplusplus + extern "C" { +#endif + +/** @addtogroup STM32F2xx_System_Includes + * @{ + */ + +/** + * @} + */ + + +/** @addtogroup STM32F2xx_System_Exported_types + * @{ + */ + /* This variable is updated in three ways: + 1) by calling CMSIS function SystemCoreClockUpdate() + 2) by calling HAL API function HAL_RCC_GetSysClockFreq() + 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency + Note: If you use this function to configure the system clock; then there + is no need to call the 2 first functions listed above, since SystemCoreClock + variable is updated automatically. + */ +extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ + +extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ +extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Constants + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Macros + * @{ + */ + +/** + * @} + */ + +/** @addtogroup STM32F2xx_System_Exported_Functions + * @{ + */ + +extern void SystemInit(void); +extern void SystemCoreClockUpdate(void); +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif /*__SYSTEM_STM32F2XX_H */ + +/** + * @} + */ + +/** + * @} + */ +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |