summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/samsungypr/ypr0/system-ypr0.c')
-rw-r--r--firmware/target/hosted/samsungypr/ypr0/system-ypr0.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
index 6232df4a22..477b71c6a2 100644
--- a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
+++ b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c
@@ -21,9 +21,11 @@
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
+#include <unistd.h>
#include "system.h"
#include "panic.h"
#include "debug.h"
+#include "hostfs.h"
#include "ascodec.h"
#include "gpio-ypr.h"
@@ -59,6 +61,18 @@ void system_exception_wait(void)
system_reboot();
}
+void hostfs_init(void)
+{
+ /* stub */
+}
+
+int hostfs_flush(void)
+{
+ sync();
+
+ return 0;
+}
+
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
#include <stdio.h>
#include "file.h"