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.
		
		
		
	
	
		
		
			
	
	
		
			
				
					
						
							|  |  |  | /*
 | 
					
						
							|  |  |  | #include <DBSQL/DB_SQLite.h>
 | 
					
						
							|  |  |  | #include <DB_SQLite.h>
 | 
					
						
							|  |  |  |  * Copyright (c) 2006-2025, RT-Thread Development Team | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: Apache-2.0 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Change Logs: | 
					
						
							|  |  |  |  * Date           Author       Notes | 
					
						
							|  |  |  |  * 2025-10-18     RT-Thread    first version | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <rtthread.h>
 | 
					
						
							|  |  |  | #include "dfs_fs.h"
 | 
					
						
							|  |  |  | #include <rtdbg.h>
 | 
					
						
							|  |  |  | #include "RUN_LED.h"
 | 
					
						
							|  |  |  | #include "DB_SQLite.h"
 | 
					
						
							|  |  |  | #include "DATA_comm.h"
 | 
					
						
							|  |  |  | #include "uart_rs485.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define DBG_TAG "main"
 | 
					
						
							|  |  |  | #define DBG_LVL DBG_LOG
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern rt_sem_t mount_sem;  // 引用上面SD挂载线程定义的信号量
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int main(void) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     rt_sem_take(mount_sem, rt_tick_from_millisecond(5000)); // 等待挂载完成,最多等待 5 秒
 | 
					
						
							|  |  |  |     thread_RUN_LED();//运行指示灯线程
 | 
					
						
							|  |  |  |     thread_DB_SQLite(); | 
					
						
							|  |  |  |     data_comm_init(); | 
					
						
							|  |  |  |     app_uart_rs485_startup(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     return RT_EOK; | 
					
						
							|  |  |  | } |