Fixed compilation issue of iwip
This commit is contained in:
parent
9edd5ad7d9
commit
82346acf6a
|
@ -27,7 +27,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <at_agent.h>
|
#include "at_agent.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
#ifdef ADD_RTTHREAD_FEATURES
|
#ifdef ADD_RTTHREAD_FEATURES
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "at_agent.h"
|
||||||
|
#include "adapter.h"
|
||||||
|
|
||||||
#define AT_CMD_MAX_LEN 128
|
#define AT_CMD_MAX_LEN 128
|
||||||
#define AT_AGENT_MAX 2
|
#define AT_AGENT_MAX 2
|
||||||
static char send_buf[AT_CMD_MAX_LEN];
|
static char send_buf[AT_CMD_MAX_LEN];
|
||||||
|
|
|
@ -58,17 +58,7 @@ struct ATAgent
|
||||||
uint32 maintain_len;
|
uint32 maintain_len;
|
||||||
uint32 maintain_max;
|
uint32 maintain_max;
|
||||||
|
|
||||||
#ifdef ADD_XIZI_FEATURES
|
|
||||||
|
|
||||||
#if defined(ADAPTER_GM800TF) || defined(ADAPTER_EC801E)
|
|
||||||
pthread_mutex_t lock;
|
pthread_mutex_t lock;
|
||||||
#else
|
|
||||||
int lock;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#else // ADD_XIZI_FEATURES
|
|
||||||
pthread_mutex_t lock;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ATReplyType reply;
|
ATReplyType reply;
|
||||||
char reply_lr_end;
|
char reply_lr_end;
|
||||||
|
|
|
@ -32,10 +32,16 @@
|
||||||
#ifndef __CC_H__
|
#ifndef __CC_H__
|
||||||
#define __CC_H__
|
#define __CC_H__
|
||||||
|
|
||||||
#include "stdio.h"
|
// IWYU pragma: begin_exports
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "sys/time.h"
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
// IWYU pragma: end_exports
|
||||||
|
|
||||||
//typedef unsigned char u8_t;
|
//typedef unsigned char u8_t;
|
||||||
//typedef signed char s8_t;
|
//typedef signed char s8_t;
|
||||||
//typedef unsigned short u16_t;
|
//typedef unsigned short u16_t;
|
||||||
|
|
Loading…
Reference in New Issue