【修改】AT Socket 创建的事件和锁的名称

Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
chenyong 2018-08-21 12:04:04 +08:00
parent 891067826d
commit c7aab5b114
2 changed files with 6 additions and 6 deletions

View File

@ -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!");

View File

@ -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!");