aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stm32l4/include/system_stm32l4xx.h
diff options
context:
space:
mode:
authorMatt Baker <baker.matt.j@gmail.com>2021-04-22 13:25:45 -0700
committerKevinOConnor <kevin@koconnor.net>2022-09-15 11:51:26 -0400
commit57b0eb5d43e4324c2c52282925ddc63fc36df783 (patch)
tree46ca825191ef039ce05731bf9d6cdd99c9cf73ca /lib/stm32l4/include/system_stm32l4xx.h
parent8cdb2278d7f8045a8abc1648c8e7e7c347f0c971 (diff)
downloadkutter-57b0eb5d43e4324c2c52282925ddc63fc36df783.tar.gz
kutter-57b0eb5d43e4324c2c52282925ddc63fc36df783.tar.xz
kutter-57b0eb5d43e4324c2c52282925ddc63fc36df783.zip
stm32l4: copy libs from STM32CubeL4 v1.17.0
Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
Diffstat (limited to 'lib/stm32l4/include/system_stm32l4xx.h')
-rwxr-xr-xlib/stm32l4/include/system_stm32l4xx.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/lib/stm32l4/include/system_stm32l4xx.h b/lib/stm32l4/include/system_stm32l4xx.h
new file mode 100755
index 00000000..00166a51
--- /dev/null
+++ b/lib/stm32l4/include/system_stm32l4xx.h
@@ -0,0 +1,107 @@
+/**
+ ******************************************************************************
+ * @file system_stm32l4xx.h
+ * @author MCD Application Team
+ * @brief CMSIS Cortex-M4 Device System Source File for STM32L4xx devices.
+ ******************************************************************************
+ * @attention
+ *
+ * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
+ * All rights reserved.</center></h2>
+ *
+ * This software component is licensed by ST under Apache License, Version 2.0,
+ * 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/Apache-2.0
+ *
+ ******************************************************************************
+ */
+
+/** @addtogroup CMSIS
+ * @{
+ */
+
+/** @addtogroup stm32l4xx_system
+ * @{
+ */
+
+/**
+ * @brief Define to prevent recursive inclusion
+ */
+#ifndef __SYSTEM_STM32L4XX_H
+#define __SYSTEM_STM32L4XX_H
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
+/** @addtogroup STM32L4xx_System_Includes
+ * @{
+ */
+
+/**
+ * @}
+ */
+
+
+/** @addtogroup STM32L4xx_System_Exported_Variables
+ * @{
+ */
+ /* The SystemCoreClock 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 */
+extern const uint32_t MSIRangeTable[12]; /*!< MSI ranges table values */
+
+/**
+ * @}
+ */
+
+/** @addtogroup STM32L4xx_System_Exported_Constants
+ * @{
+ */
+
+/**
+ * @}
+ */
+
+/** @addtogroup STM32L4xx_System_Exported_Macros
+ * @{
+ */
+
+/**
+ * @}
+ */
+
+/** @addtogroup STM32L4xx_System_Exported_Functions
+ * @{
+ */
+
+extern void SystemInit(void);
+extern void SystemCoreClockUpdate(void);
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*__SYSTEM_STM32L4XX_H */
+
+/**
+ * @}
+ */
+
+/**
+ * @}
+ */
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/