添加debug重定向,添加命令行

This commit is contained in:
ranchuan
2023-12-02 11:27:25 +08:00
parent ae972b21aa
commit 66b9453255
19 changed files with 518 additions and 104 deletions

View File

@@ -1,5 +1,4 @@
#include "mainwindow.h"
#include <QApplication>
#include <QString>
#include <QDebug>
@@ -11,7 +10,8 @@
#include "prot/prot_m4.h"
#include "prot/prot_pc.h"
#include "prot/prot_slave.h"
#include "prot/prot_cmdline.h"
#include "base/debug.h"
@@ -22,11 +22,19 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
MainWindow w;
// w.show();
syscfg();
mycfg *cfg=syscfg();
if(cfg->log_redirect=="file"){
mydebug_init("debug");
}else{
mydebug_init();
}
check_plan();
prot_m4 *m4=protM4();
protPc();
protSlave();
command_start();
// 获取m4的编译时间
m4->set_irq_fun([=](myarray data){