40 lines
697 B
C++
40 lines
697 B
C++
/*
|
|||
|
|
* SPDX-FileCopyrightText: 2022 Unisoc (Shanghai) Technologies Co., Ltd.
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: LicenseRef-Unisoc-General-1.0
|
||
|
|
*
|
||
|
|
* nativemmi.cpp
|
||
|
|
* Created on: 2022/03/25
|
||
|
|
* Author: etham.li@unisoc.com
|
||
|
|
*/
|
||
|
|
#include <stdio.h>
|
||
|
|
#include <stdlib.h>
|
||
|
|
#include <string.h>
|
||
|
|
#include <signal.h>
|
||
|
|
#include <unistd.h>
|
||
|
|
#include <iostream>
|
||
|
|
#include "NativeLog.h"
|
||
|
|
#include "CControlMgr.h"
|
||
|
|
|
||
|
|
/*****
|
||
|
|
Function:
|
||
|
|
main()
|
||
|
|
Description:
|
||
|
|
This is entry point for nativemmi.
|
||
|
|
*****/
|
||
|
|
int main(int argc, char* argv[]) {
|
||
|
|
CControlMgr* ccontrolmgr = new CControlMgr();
|
||
|
|
|
||
|
|
if (ccontrolmgr->BeginRun() < 0) {
|
||
|
|
return -1;
|
||
|
|
}
|
||
|
|
|
||
|
|
if (argc == 1) {
|
||
|
|
while (true) {
|
||
|
|
sleep(1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|