]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_MPU_M3_NUCLEO_L152RE_GCC/ST_Code/Drivers/CMSIS/Device/ST/STM32L1xx/Include/system_stm32l1xx.h
5915dd6106ef98d7b55e91470dc95b48894e0878
[freertos] / FreeRTOS / Demo / CORTEX_MPU_M3_NUCLEO_L152RE_GCC / ST_Code / Drivers / CMSIS / Device / ST / STM32L1xx / Include / system_stm32l1xx.h
1 /**\r
2   ******************************************************************************\r
3   * @file    system_stm32l1xx.h\r
4   * @author  MCD Application Team\r
5   * @brief   CMSIS Cortex-M3 Device System Source File for STM32L1xx devices.  \r
6   ******************************************************************************\r
7   * @attention\r
8   *\r
9   * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.\r
10   * All rights reserved.</center></h2>\r
11   *\r
12   * This software component is licensed by ST under BSD 3-Clause license,\r
13   * the "License"; You may not use this file except in compliance with the\r
14   * License. You may obtain a copy of the License at:\r
15   *                        opensource.org/licenses/BSD-3-Clause\r
16   *\r
17   ******************************************************************************\r
18   */\r
19 \r
20 /** @addtogroup CMSIS\r
21   * @{\r
22   */\r
23 \r
24 /** @addtogroup stm32l1xx_system\r
25   * @{\r
26   */  \r
27   \r
28 /**\r
29   * @brief Define to prevent recursive inclusion\r
30   */\r
31 #ifndef __SYSTEM_STM32L1XX_H\r
32 #define __SYSTEM_STM32L1XX_H\r
33 \r
34 #ifdef __cplusplus\r
35  extern "C" {\r
36 #endif \r
37 \r
38 /** @addtogroup STM32L1xx_System_Includes\r
39   * @{\r
40   */\r
41 \r
42 /**\r
43   * @}\r
44   */\r
45 \r
46 \r
47 /** @addtogroup STM32L1xx_System_Exported_types\r
48   * @{\r
49   */\r
50   /* This variable is updated in three ways:\r
51       1) by calling CMSIS function SystemCoreClockUpdate()\r
52       2) by calling HAL API function HAL_RCC_GetSysClockFreq()\r
53       3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency \r
54          Note: If you use this function to configure the system clock; then there\r
55                is no need to call the 2 first functions listed above, since SystemCoreClock\r
56                variable is updated automatically.\r
57   */\r
58 extern uint32_t SystemCoreClock;          /*!< System Clock Frequency (Core Clock) */\r
59 /*\r
60 */\r
61 extern const uint8_t AHBPrescTable[16];   /*!< AHB prescalers table values */\r
62 extern const uint8_t APBPrescTable[8];    /*!< APB prescalers table values */\r
63 extern const uint8_t PLLMulTable[9];      /*!< PLL multipiers table values */\r
64 \r
65 /**\r
66   * @}\r
67   */\r
68 \r
69 /** @addtogroup STM32L1xx_System_Exported_Constants\r
70   * @{\r
71   */\r
72 \r
73 /**\r
74   * @}\r
75   */\r
76 \r
77 /** @addtogroup STM32L1xx_System_Exported_Macros\r
78   * @{\r
79   */\r
80 \r
81 /**\r
82   * @}\r
83   */\r
84 \r
85 /** @addtogroup STM32L1xx_System_Exported_Functions\r
86   * @{\r
87   */\r
88   \r
89 extern void SystemInit(void);\r
90 extern void SystemCoreClockUpdate(void);\r
91 /**\r
92   * @}\r
93   */\r
94 \r
95 #ifdef __cplusplus\r
96 }\r
97 #endif\r
98 \r
99 #endif /*__SYSTEM_STM32L1XX_H */\r
100 \r
101 /**\r
102   * @}\r
103   */\r
104   \r
105 /**\r
106   * @}\r
107   */  \r
108 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/\r