drivers: add note driver backend for recording scheduling information

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2023-02-24 11:37:35 +08:00
committed by Xiang Xiao
parent 8d16fa04df
commit f9f0ab8dc4
5 changed files with 504 additions and 1 deletions
+9
View File
@@ -25,6 +25,7 @@
#include <nuttx/note/note_driver.h>
#include <nuttx/note/noteram_driver.h>
#include <nuttx/note/notectl_driver.h>
#include <nuttx/note/notesnap_driver.h>
#include <nuttx/segger/sysview.h>
/****************************************************************************
@@ -74,5 +75,13 @@ int note_initialize(void)
}
#endif
#ifdef CONFIG_DRIVERS_NOTESNAP
ret = notesnap_register();
if (ret < 0)
{
return ret;
}
#endif
return ret;
}