71 lines
1.3 KiB
C
71 lines
1.3 KiB
C
/*
|
|
@add
|
|
*/
|
|
|
|
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <pthread.h>
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <termios.h>
|
|
#include <errno.h>
|
|
#include <getopt.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <arpa/inet.h>
|
|
#include <sched.h>
|
|
#include <time.h>
|
|
|
|
|
|
#include "../inc/type.h"
|
|
#include "../inc/delay.h"
|
|
#include "../inc/lcd_task.h"
|
|
#include "../inc/isys_config.h"
|
|
#include "../inc/i2c_drv.h"
|
|
#include "../inc/dpd_proc.h"
|
|
#include "../inc/iuart_user.h"
|
|
#include "../inc/eeprom.h"
|
|
#include "../inc/gps.h"
|
|
#include "../inc/main.h"
|
|
#include "../inc/msg.h"
|
|
#include "../inc/iweb_task.h"
|
|
#include "../inc/general_api.h"
|
|
#include "../inc/isys_com.h"
|
|
#include "../inc/dac38j82.h"
|
|
#include "../inc/os_task.h"
|
|
#include "../inc/config.h"
|
|
|
|
|
|
|
|
uint32 Net_write_RF(uint8 param)
|
|
{
|
|
#if USE_DRY_LOOP
|
|
if(dryloop_status.rf==INVALID_DATA)
|
|
{
|
|
remote_write_rf(param);
|
|
return UART_PARA_SET_ERR_OK;
|
|
}
|
|
else
|
|
#endif
|
|
{
|
|
if(atsc_para.ad3_para.rc_cmd==0) //IO
|
|
{
|
|
return UART_PARA_SET_ERR_DRYLOOP;
|
|
}
|
|
else //WEB
|
|
{
|
|
remote_write_rf(param);
|
|
return UART_PARA_SET_ERR_OK;
|
|
}
|
|
}
|
|
}
|
|
|
|
|