Skip to content

Commit 2c29a64

Browse files
committed
[component][net][at] at_client增加deInit接口
1 parent dce06ba commit 2c29a64

File tree

2 files changed

+221
-249
lines changed

2 files changed

+221
-249
lines changed

components/net/at/include/at.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,18 @@ struct at_client
169169
/* The maximum supported receive data length */
170170
rt_size_t recv_bufsz;
171171

172-
#if (!defined(RT_USING_SERIAL_V2))
173-
rt_sem_t rx_notice;
174-
#endif
175-
176-
rt_mutex_t lock;
172+
struct rt_event event;
173+
struct rt_mutex lock;
177174

178175
at_response_t resp;
179-
rt_sem_t resp_notice;
180176
at_resp_status_t resp_status;
181177

182178
struct at_urc_table *urc_table;
183179
rt_size_t urc_table_size;
184180
const struct at_urc *urc;
185181

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

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

211209
/* ========================== multiple AT client function ============================ */
212210

0 commit comments

Comments
 (0)