增加rt_strnlen,lua采用单独的线程
This commit is contained in:
parent
65ac4a0810
commit
c9591f825c
|
@ -35,7 +35,7 @@ void finsh_lua(struct para *parameters)
|
|||
rx_indicate = dev4lua.device->rx_indicate;
|
||||
|
||||
/* set new rx_indicate */
|
||||
//rt_device_set_rx_indicate(dev4lua.device, lua_rx_ind);
|
||||
rt_device_set_rx_indicate(dev4lua.device, lua_rx_ind);
|
||||
|
||||
{
|
||||
int argc = parameters->argc;
|
||||
|
@ -149,7 +149,7 @@ static void lua_msh(int argc, char **argv)
|
|||
(void (*)(void *))(finsh_lua),
|
||||
(void*)parameters,
|
||||
10240,
|
||||
rt_thread_self()->current_priority - 1,
|
||||
rt_thread_self()->current_priority + 1,
|
||||
20);
|
||||
if (lua_thread != RT_NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue