init
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#ifndef CA51F_CONFIG_H
|
||||
#define CA51F_CONFIG_H
|
||||
/**************************************************************************************************************/
|
||||
#define IRCH 0
|
||||
#define IRCL 1
|
||||
|
||||
/**************************************************************************************************************/
|
||||
#define SYSCLK_SRC IRCH //芯片系统时钟选择
|
||||
/**************************************************************************************************************/
|
||||
|
||||
|
||||
/************系统时钟频率定义,主要用于配置UART波特率**********************************************************/
|
||||
#if (SYSCLK_SRC == IRCH)
|
||||
#define FOSC (16000000)
|
||||
#elif (SYSCLK_SRC == IRCL)
|
||||
#define FOSC (131000)
|
||||
#endif
|
||||
/***************************************************************************************************************/
|
||||
|
||||
|
||||
/*************************UART功能开关宏定义********************************************************************/
|
||||
//#define UART0_EN //如果使用UART0,打开此宏定义
|
||||
|
||||
#ifdef UART0_EN
|
||||
#define UART0_BAUTRATE 115200
|
||||
#endif
|
||||
/*********************************************************************************************************************/
|
||||
#define LVD_RST_ENABLE
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*********************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user