mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-14 05:42:57 +08:00
112 lines
2.5 KiB
C
112 lines
2.5 KiB
C
/**
|
|
******************************************************************************
|
|
* @file system_stm32l1xx.h
|
|
* @author MCD Application Team
|
|
* @version V1.3.0
|
|
* @date 31-January-2014
|
|
* @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Header File.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2>
|
|
*
|
|
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
|
|
* You may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at:
|
|
*
|
|
* http://www.st.com/software_license_agreement_liberty_v2
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/** @addtogroup CMSIS
|
|
* @{
|
|
*/
|
|
|
|
/** @addtogroup stm32l1xx_system
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @brief Define to prevent recursive inclusion
|
|
*/
|
|
#ifndef __SYSTEM_STM32L1XX_H
|
|
#define __SYSTEM_STM32L1XX_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** @addtogroup STM32L1xx_System_Includes
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
|
|
/** @addtogroup STM32L1xx_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) */
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/** @addtogroup STM32L1xx_System_Exported_Constants
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/** @addtogroup STM32L1xx_System_Exported_Macros
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/** @addtogroup STM32L1xx_System_Exported_Functions
|
|
* @{
|
|
*/
|
|
|
|
extern void SystemInit(void);
|
|
extern void SystemCoreClockUpdate(void);
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /*__SYSTEM_STM32L1XX_H */
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|