12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #include "global.h"
- unsigned long cStartDelay;
- int main(void)
- {
- hw_board_init();
- //保存24电源的状态
- //参数变量初始化
- variable_init();
- //应用初始化
- mosbus_app_init();
- poweroff_app_init();
- //GetMachineType();
- EncoderInit();
- InitPWM();
- user_app_init();
- nodelink_master_app_init();
- //log_app_init();
- InitAction();
-
- cStartDelay = dwTickCount + 1200;
- while(dwTickCount <= cStartDelay)
- {
- io_app_read_input();
- nodelink_read_input();
-
- io_app_write_ouput();
- nodelink_write_output();
- }
- while (1)
- {
- //运行状态
- hw_run_status_show();
- io_app_read_input();
- nodelink_read_input();
- Action();
- poweroff_app_run();
- user_app_run();
- //CheckTimeOver();
- io_app_write_ouput();
- nodelink_write_output();
- //nodelink_master_app_run();
- ReSetWifi();
- //io_app_run();
- //通讯协议
- modbus_app_proc();
-
- }
- }
|