This commit is contained in:
moyuhai
2026-06-12 09:12:35 +08:00
commit 02f1638ef2
91 changed files with 38366 additions and 0 deletions
+39
View File
@@ -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
/*********************************************/