-
大小: 10.04MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-10-13
- 语言: 其他
- 标签: Nu_LB_NUC140
资源简介
SW_Nu_LB_NUC140_v1.0.zip
Nu_LB_NUC140 开发板的例程包 包括库函数 和 例程
代码片段和文件信息
/**************************************************************************//**
* @file system_NUC100Series.c
* @version V3.0
* $Revision: 1 $
* $Date: 14/12/08 11:47a $
* @brief NUC100 Series CMSIS System File
*
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.
*
******************************************************************************/
#include
#include “NUC100Series.h“
/*----------------------------------------------------------------------------
Clock Variable definitions
*----------------------------------------------------------------------------*/
uint32_t SystemCoreClock = __HSI; /*!< System Clock Frequency (Core Clock) */
uint32_t CyclesPerUs = (__HSI / 1000000); /* Cycles per micro second */
uint32_t PllClock = __HSI; /*!< PLL Output Clock Frequency */
uint32_t gau32ClkSrcTbl[] = {__HXT __LXT __HSI __LIRC NULL NULL NULL __HIRC};
/*----------------------------------------------------------------------------
Clock functions
This function is used to update the variable SystemCoreClock
and must be called whenever the core clock is changed.
*----------------------------------------------------------------------------*/
void SystemCoreClockUpdate(void) /* Get Core Clock Frequency */
{
uint32_t u32Freq u32ClkSrc;
uint32_t u32HclkDiv;
/* Update PLL Clock */
PllClock = CLK_GetPLLClockFreq();
u32ClkSrc = CLK->CLKSEL0 & CLK_CLKSEL0_HCLK_S_Msk;
if(u32ClkSrc != CLK_CLKSEL0_HCLK_S_PLL)
{
/* Use the clock sources directly */
u32Freq = gau32ClkSrcTbl[u32ClkSrc];
}
else
{
/* Use PLL clock */
u32Freq = PllClock;
}
u32HclkDiv = (CLK->CLKDIV & CLK_CLKDIV_HCLK_N_Msk) + 1;
/* Update System Core Clock */
SystemCoreClock = u32Freq / u32HclkDiv;
CyclesPerUs = (SystemCoreClock + 500000) / 1000000;
}
/*---------------------------------------------------------------------------------------------------------*/
/* Function: SystemInit */
/* */
/* Parameters: */
/* None */
/* */
/* Returns: */
/* None */
/*
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-01 20:01 SW_Nu_LB_NUC140_v1.0\
目录 0 2016-07-01 19:43 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\
目录 0 2015-07-24 16:36 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Document\
文件 4453607 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Document\NuMicro NUC100 Series Driver Reference Guide.chm
文件 2623404 2015-07-24 16:36 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Document\NuMicro NUC100 Series Driver Reference Guide.chw
文件 4372 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Document\Release Note.txt
目录 0 2016-06-23 11:53 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\
目录 0 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\
文件 46999 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\CMSIS END USER LICENCE AGREEMENT.pdf
目录 0 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\
文件 1240 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\arm_common_tables.h
文件 255756 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\arm_math.h
文件 32139 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_cm0.h
文件 39428 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_cm0plus.h
文件 98950 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_cm3.h
文件 108260 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_cm4.h
文件 21323 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_cm4_simd.h
文件 15924 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_cmFunc.h
文件 17305 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_cmInstr.h
文件 40737 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_sc000.h
文件 97329 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\Include\core_sc300.h
文件 550 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\index.html
文件 1516 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\CMSIS\README.txt
目录 0 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\
目录 0 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\Nuvoton\
目录 0 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\Nuvoton\NUC100Series\
目录 0 2016-02-03 16:44 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\Nuvoton\NUC100Series\Include\
文件 966706 2016-01-26 18:40 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\Nuvoton\NUC100Series\Include\NUC100Series.h
文件 2219 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\Nuvoton\NUC100Series\Include\system_NUC100Series.h
目录 0 2015-05-13 11:06 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\Nuvoton\NUC100Series\Source\
目录 0 2015-12-31 18:29 SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\Library\Device\Nuvoton\NUC100Series\Source\ARM\
............此处省略680个文件信息
- 上一篇:MID格式音乐.rar
- 下一篇:ISA95 第一、三部分中文翻译
评论
共有 条评论