91 lines
1.3 KiB
C
Raw Normal View History

2025-03-14 10:41:56 +08:00
#include "sim.h"
#include "sensor.h"
2024-08-05 20:57:09 +08:00
#include <rtthread.h>
#include <rthw.h>
2025-03-14 11:04:51 +08:00
#include <dev_wlan_mgnt.h>
#include <dev_wlan_cfg.h>
#include <dev_wlan_prot.h>
2024-08-05 20:57:09 +08:00
#include <ap3216c.h>
#include "my_func.h"
2025-03-21 22:10:18 +08:00
#include "status.h"
2024-08-05 20:57:09 +08:00
static int board_init(void)
{
return 0;
}
INIT_BOARD_EXPORT(board_init);
static int prev_init(void)
{
return 0;
}
INIT_PREV_EXPORT(prev_init);
static int device_init(void)
{
return 0;
}
INIT_DEVICE_EXPORT(device_init);
static int component_init(void)
{
return 0;
}
INIT_COMPONENT_EXPORT(component_init);
static int env_init(void)
{
return 0;
}
INIT_ENV_EXPORT(env_init);
static int app_init(void)
{
return 0;
}
INIT_APP_EXPORT(app_init);
// extern int wifi_join(int argc, char *argv[]);
extern int aiv_init(void);
extern int mot_init(void);
extern int last_stop;
2024-08-05 20:57:09 +08:00
int main_init(void)
{
my_round(20);
2025-03-14 10:41:56 +08:00
sim_dev_init();
ath_init();
wla_init();
// if (wlan_connected == RT_EOK)
// {
// last_stop = 1;
// mqt_init();
// }
ap3_init();
inf_init();
cdc_init();
tst_init(); // 不知道为什么不能在mqtt_init()之前,不然报错
serial_init();
mot_init();
aiv_init();
sensor_init();
2025-03-21 22:10:18 +08:00
status_init();
// led_init();
2024-08-05 20:57:09 +08:00
}
MSH_CMD_EXPORT_ALIAS(main_init, myproject, run my project);