123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- /**
- *******************************************************************************
- * @file system_hc32f448mcti.h
- * @brief This file contains all the functions prototypes of the HC32 System.
- @verbatim
- Change Logs:
- Date Author Notes
- 2022-12-31 CDT First version
- @endverbatim
- *******************************************************************************
- * Copyright (C) 2022, Xiaohua Semiconductor Co., Ltd. All rights reserved.
- *
- * This software component is licensed by XHSC 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
- *
- *******************************************************************************
- */
- #ifndef __SYSTEM_HC32F448MCTI_H__
- #define __SYSTEM_HC32F448MCTI_H__
- /* C binding of definitions if building with C++ compiler */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /*******************************************************************************
- * Include files
- ******************************************************************************/
- #include <stdint.h>
- /**
- * @addtogroup CMSIS
- * @{
- */
- /**
- * @addtogroup HC32F448_System
- * @{
- */
- /*******************************************************************************
- * Global pre-processor symbols/macros ('define')
- ******************************************************************************/
- /**
- * @addtogroup HC32F448_System_Global_Macros
- * @{
- */
- /**
- * @addtogroup HC32F448_System_Clock_Source
- * @{
- */
- #if !defined (MRC_VALUE)
- #define MRC_VALUE (8000000UL) /*!< Internal middle speed RC freq. */
- #endif
- #if !defined (LRC_VALUE)
- #define LRC_VALUE (32768UL) /*!< Internal low speed RC freq. */
- #endif
- #if !defined (XTAL_VALUE)
- #define XTAL_VALUE (16000000UL) /*!< External high speed OSC freq. */
- #endif
- #if !defined (XTAL32_VALUE)
- #define XTAL32_VALUE (32768UL) /*!< External low speed OSC freq. */
- #endif
- #if !defined (HCLK_VALUE)
- #define HCLK_VALUE (SystemCoreClock >> ((CM_CMU->SCFGR & CMU_SCFGR_HCLKS) >> CMU_SCFGR_HCLKS_POS))
- #endif
- /**
- * @}
- */
- /**
- * @}
- */
- /*******************************************************************************
- * Global variable definitions ('extern')
- ******************************************************************************/
- /**
- * @addtogroup HC32F448_System_Exported_Variable
- * @{
- */
- extern uint32_t SystemCoreClock; /*!< System clock frequency (Core clock) */
- extern uint32_t HRC_VALUE; /*!< HRC frequency */
- /**
- * @}
- */
- /*******************************************************************************
- * Global function prototypes (definition in C source)
- ******************************************************************************/
- /**
- * @addtogroup HC32F448_System_Global_Functions
- * @{
- */
- extern void SystemInit(void); /*!< Initialize the system */
- extern void SystemCoreClockUpdate(void); /*!< Update SystemCoreClock variable */
- /**
- * @}
- */
- /**
- * @}
- */
- /**
- * @}
- */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __SYSTEM_HC32F448MCTI_H__ */
- /*******************************************************************************
- * EOF (not truncated)
- ******************************************************************************/
|