main.c
884 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include "JZsdkLib.h"
#include "version_choose.h"
#include "ircut.h"
#include "Megaphone_InputAndOutput.h"
#include "Gimbal_InAndOut.h"
#include "JZsdk_Uart_Input.h"
#include "BaseConfig.h"
int main()
{
//设定本程序为 uart程序模式 还是 psdk程序模式
//前者可用于 uart连接对外接口 或者是 通过uart控制的psdk
//后者则是用于直接镶套在psdk程序里面
printf("JZ串口程序 Version%x.%x.%x.%x\n",MAJOR_VERSION, MINOR_VERSION, MODIFY_VERSION, DEBUG_VERSION);
JZsdk_LibInit();
if (APP_VERSION == APP_UART)
{
Main_APP_Uart();
}
else if (APP_VERSION == APP_PSDK)
{
Main_APP_Psdk();
}
while (1)
{
delayMs(1000);
}
}