Skip to content

[component][net][at] at_client增加deInit接口 #10598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions components/net/at/include/at.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,18 @@ struct at_client
/* The maximum supported receive data length */
rt_size_t recv_bufsz;

#if (!defined(RT_USING_SERIAL_V2))
rt_sem_t rx_notice;
#endif

rt_mutex_t lock;
struct rt_event event;
struct rt_mutex lock;

at_response_t resp;
rt_sem_t resp_notice;
at_resp_status_t resp_status;

struct at_urc_table *urc_table;
rt_size_t urc_table_size;
const struct at_urc *urc;

rt_thread_t parser;
rt_slist_t list;
};
typedef struct at_client *at_client_t;
#endif /* AT_USING_CLIENT */
Expand All @@ -207,6 +204,7 @@ int at_req_parse_args(const char *req_args, const char *req_expr, ...);

/* AT client initialize and start*/
int at_client_init(const char *dev_name, rt_size_t recv_bufsz, rt_size_t send_bufsz);
int at_client_deInit(const char *dev_name);

/* ========================== multiple AT client function ============================ */

Expand Down
Loading
Loading