Skip to content

Commit ebdf19b

Browse files
authored
Merge branch 'RT-Thread:master' into part
2 parents 8b17d53 + 00d42ef commit ebdf19b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

bsp/ls2kdev/drivers/drv_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/*@{*/
1616

1717
#include <stdlib.h>
18+
#include <stdint.h>
1819
#include <ctype.h>
1920
#include <stdint.h>
2021
#include <rtthread.h>

components/libc/compilers/common/stdlib.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,26 @@
1010

1111
#include <rtthread.h>
1212

13+
#define DBG_TAG "stdlib"
14+
#define DBG_LVL DBG_INFO
15+
#include <rtdbg.h>
16+
1317
void __rt_libc_exit(int status)
1418
{
1519
rt_thread_t self = rt_thread_self();
1620

1721
if (self != RT_NULL)
1822
{
19-
rt_kprintf("thread:%s exit:%d!\n", self->name, status);
23+
LOG_E("thread:%s exit:%d!", self->name, status);
2024
rt_thread_control(self, RT_THREAD_CTRL_CLOSE, RT_NULL);
2125
}
2226
}
2327

2428
int __rt_libc_system(const char *string)
2529
{
26-
/* TODO */
30+
#ifdef RT_USING_MSH
31+
extern int msh_exec(char *cmd, rt_size_t length);
32+
msh_exec((char*)string, rt_strlen(string));
33+
#endif
2734
return 0;
2835
}

0 commit comments

Comments
 (0)