You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
595 B

/**
* @file lib_node.c
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2022-01-29
*
* @copyright Copyright (c) 2022
*
*/
//由于系统控制寄存器的访问操作会影响整个芯片的运行状态,为避免误操作导致芯片运行\
不正常,芯片提供系统设置保护寄存器。修改系统控制单元前,必须先关闭写保护,操作\
完成后应当重新使能写保护,使芯片安全运行
SCU_RegUnLock();//写保护关闭
SCU_RegLock();//写保护开启
//SCU->SCLKEN0.CLK_SEL = 0x01;//若不使能HRC,则开启LRC时钟
/**
滴答定时器:系统时钟就是你所选择的时钟源,滴答定时器的时钟源选择:等于系统时钟,等于系统时钟的三分频
**/