mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
drivers/note: suport rpmsg transfer channel for note,some note api
need to adapte for rpmsg. We can transfer note content through rpmsg Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
#include <nuttx/segger/note_rtt.h>
|
||||
#include <nuttx/segger/sysview.h>
|
||||
|
||||
#include "noterpmsg.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
@@ -121,5 +123,23 @@ int note_initialize(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRIVERS_NOTERPMSG_SERVER
|
||||
ret = noterpmsg_server_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
serr("noterpmsg_server_init failed %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRIVERS_NOTERPMSG
|
||||
ret = noterpmsg_init();
|
||||
if (ret < 0)
|
||||
{
|
||||
serr("noterpmsg_init failed %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user