cmcu为stm32h743IIt6
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.
 
 
 
 
 
 

38 lines
977 B

/*
* Copyright (c) 2006-2025, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2025-11-16 RT-Thread first version
*/
#include <rtthread.h>
#include <light/RUN_LED.h>
#include "DB_SQLite.h"
#include "INI/config.h"
#include "Variable.h"
#include "ltdc.h"
#include <lv__user_gui.h>
#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>
extern rt_sem_t mount_sem; // 引用上面SD挂载线程定义的信号量
extern int wdt_sample();
int main(void)
{
rt_sem_take(mount_sem, rt_tick_from_millisecond(5000)); // 等待挂载完成,最多等待 5 秒
read_sample();//读配置文件
lv_inf_gui_init();//初始化显示预设信息
thread_DB_SQLite();//启动数据库
thread_RUN_LED();//运行指示灯线程
rt_snprintf(sys_var, sizeof(sys_var),"0.0.01a");
// wdt_sample();//启动看门狗
LTDC_BL(1);//屏幕背光开
return RT_EOK;
}