JZ_widget.c 1.0 KB
/* 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
}