mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
add error output
This commit is contained in:
parent
c5b01f1087
commit
5a1a528b45
@ -12,6 +12,10 @@
|
||||
#include <shell.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define DBG_TAG "PikaScript"
|
||||
#define DBG_LVL DBG_INFO
|
||||
#include <rtdbg.h>
|
||||
|
||||
#define RX_Buff_SIZE 256
|
||||
char rxBuff[RX_Buff_SIZE] = { 0 };
|
||||
PikaObj *pikaMain;
|
||||
@ -104,12 +108,13 @@ static int rt_pika_init(void){
|
||||
tid = rt_thread_create("PikaScript",
|
||||
pikascript_rt_init, RT_NULL,
|
||||
PIKASCRIPT_STACK_SIZE,
|
||||
PIKASCRIPT_STACK_PRIO, 0);
|
||||
PIKASCRIPT_STACK_PRIO, 10);
|
||||
|
||||
if (tid != RT_NULL){
|
||||
rt_thread_startup(tid);
|
||||
}
|
||||
else{
|
||||
LOG_E("PikaScript thread initialization failed!");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user