JZ_widget.c
1.0 KB
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
/* Includes----------------------------------------------------*/
#include "JZ_widget.h"
#include "version_choose.h"
#include <stdarg.h>
//道通没有自定义控件
#if SPECIAL_VERSION == SPECIAL_GDU
#include "test_widget.h"
#include "gdu_logger.h"
#endif
/* Private constants-------------------------------------------*/
/* Private types-----------------------------------------------*/
/* Private values----------------------------------------------*/
/* Private functions declaration ---------------------------------------------*/
/* Exported functions definition ---------------------------------------------*/
void Jz_set_widget_value(int index,int value)
{
//如不是道通,则设置控件的值
#if SPECIAL_VERSION != SPECIAL_UAV
set_widget_value(index,value);
#endif
}
void JZ_LOG_INFO(const char *format, ...)
{
#if SPECIAL_VERSION == SPECIAL_GDU
va_list args;
va_start(args, format);
USER_LOG_INFO(format, args); // 传递参数给 USER_LOG_INFO
va_end(args);
#endif
}