Add MTD loop driver (use filemtd)

This commit is contained in:
Oreh
2023-02-06 16:05:12 +01:00
committed by Xiang Xiao
parent 833f7a5a3e
commit 9902f39d92
4 changed files with 330 additions and 0 deletions
+5
View File
@@ -29,6 +29,7 @@
#include <nuttx/drivers/rpmsgblk.h>
#include <nuttx/fs/loop.h>
#include <nuttx/fs/smart.h>
#include <nuttx/fs/loopmtd.h>
#include <nuttx/input/uinput.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/net/loopback.h>
@@ -189,4 +190,8 @@ void drivers_initialize(void)
#ifdef CONFIG_SMART_DEV_LOOP
smart_loop_register_driver();
#endif
#ifdef CONFIG_MTD_LOOP
mtd_loop_register();
#endif
}