2024-05-13 08:08:47 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2006-2024, RT-Thread Development Team
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*
|
|
|
|
|
* Change Logs:
|
|
|
|
|
* Date Author Notes
|
|
|
|
|
* 2024-05-04 RT-Thread first version
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
|
|
#define DBG_TAG "main"
|
|
|
|
|
#define DBG_LVL DBG_LOG
|
|
|
|
|
#include <rtdbg.h>
|
|
|
|
|
#include <thread.h>
|
2024-05-15 09:41:42 +00:00
|
|
|
#include <mb85rs.h>
|
|
|
|
|
#include <console.h>
|
2024-05-13 08:08:47 +00:00
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
|
{
|
2024-05-15 09:41:42 +00:00
|
|
|
spi_flash_mb85rs_init();
|
|
|
|
|
read_config();
|
|
|
|
|
|
2024-05-13 08:08:47 +00:00
|
|
|
thread_IO_Key();
|
|
|
|
|
thread_Wireless();
|
|
|
|
|
thread_LCD();
|
2024-05-17 07:00:05 +00:00
|
|
|
thread_IO_Needle();
|
2024-05-13 08:08:47 +00:00
|
|
|
thread_485();
|
|
|
|
|
thread_IO_ADC();
|
2024-05-17 07:00:05 +00:00
|
|
|
thread_Check_Save();
|
2024-05-13 08:08:47 +00:00
|
|
|
while (1)
|
|
|
|
|
{
|
|
|
|
|
// LOG_D("Hello RT-Thread!");
|
|
|
|
|
rt_thread_mdelay(10);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return RT_EOK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|