优化系统调用
This commit is contained in:
@@ -52,6 +52,8 @@ void app_test(void)
|
||||
assert(msg_tag_get_prot(tag) >= 0);
|
||||
tag = thread_bind_task(hd_thread, hd_task);
|
||||
assert(msg_tag_get_prot(tag) >= 0);
|
||||
tag = thread_msg_buf_set(hd_thread, ram_base + app->i.ram_size);
|
||||
assert(msg_tag_get_prot(tag) >= 0);
|
||||
tag = thread_run(hd_thread);
|
||||
assert(msg_tag_get_prot(tag) >= 0);
|
||||
|
||||
|
||||
@@ -8,12 +8,10 @@
|
||||
#include "u_ipc.h"
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
static uint8_t msg_buf[MSG_BUG_LEN];
|
||||
int main(int argc, char *args[])
|
||||
{
|
||||
// printf("shell>\n");
|
||||
ulog_write_str(LOG_PROT, "MKRTOS:\n");
|
||||
thread_msg_buf_set(THREAD_MAIN, msg_buf);
|
||||
ipc_recv(12, 0);
|
||||
char *buf;
|
||||
umword_t len;
|
||||
|
||||
Reference in New Issue
Block a user