【修改】AT Socket 创建的事件和锁的名称
Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
parent
891067826d
commit
c7aab5b114
|
@ -685,15 +685,15 @@ static const struct at_device_ops esp8266_socket_ops = {
|
|||
static int at_socket_device_init(void)
|
||||
{
|
||||
/* create current AT socket event */
|
||||
at_socket_event = rt_event_create("at_sock_event", RT_IPC_FLAG_FIFO);
|
||||
at_socket_event = rt_event_create("at_se", RT_IPC_FLAG_FIFO);
|
||||
if (at_socket_event == RT_NULL)
|
||||
{
|
||||
LOG_E("RT AT client port initialize failed! at_sock_event create failed!");
|
||||
return -RT_ENOMEM;
|
||||
}
|
||||
|
||||
/* create current AT socket lock */
|
||||
at_event_lock = rt_mutex_create("at_event_lock", RT_IPC_FLAG_FIFO);
|
||||
/* create current AT socket event lock */
|
||||
at_event_lock = rt_mutex_create("at_se", RT_IPC_FLAG_FIFO);
|
||||
if (at_event_lock == RT_NULL)
|
||||
{
|
||||
LOG_E("RT AT client port initialize failed! at_sock_lock create failed!");
|
||||
|
|
|
@ -890,15 +890,15 @@ static const struct at_device_ops m26_socket_ops = {
|
|||
static int at_socket_device_init(void)
|
||||
{
|
||||
/* create current AT socket event */
|
||||
at_socket_event = rt_event_create("at_sock_event", RT_IPC_FLAG_FIFO);
|
||||
at_socket_event = rt_event_create("at_se", RT_IPC_FLAG_FIFO);
|
||||
if (at_socket_event == RT_NULL)
|
||||
{
|
||||
LOG_E("AT client port initialize failed! at_sock_event create failed!");
|
||||
return -RT_ENOMEM;
|
||||
}
|
||||
|
||||
/* create current AT socket lock */
|
||||
at_event_lock = rt_mutex_create("at_event_lock", RT_IPC_FLAG_FIFO);
|
||||
/* create current AT socket event lock */
|
||||
at_event_lock = rt_mutex_create("at_se", RT_IPC_FLAG_FIFO);
|
||||
if (at_event_lock == RT_NULL)
|
||||
{
|
||||
LOG_E("AT client port initialize failed! at_sock_lock create failed!");
|
||||
|
|
Loading…
Reference in New Issue