This commit is contained in:
2025-07-07 10:41:49 +08:00
commit 1bae677e06
88 changed files with 36686 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
/*********************************************/