Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NervousPuppySprintOne NervousPuppySprint2602 Robot WarehouseBot1 ... more
Fork of mbed by
Diff: SemihostFileSystem.h
- Revision:
- 4:5d1359a283bc
- Parent:
- 3:aefd12a1f1c5
- Child:
- 5:62573be585e9
diff -r aefd12a1f1c5 -r 5d1359a283bc SemihostFileSystem.h
--- a/SemihostFileSystem.h Fri Nov 14 15:25:20 2008 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-/* mbed Microcontroller Library - SemihostFileSystem
- * Copyright (c) 2007-2008, sford
- */
-
-#ifndef MBED_SEMIHOSTFILESYSTEM_H
-#define MBED_SEMIHOSTFILESYSTEM_H
-
-#include "rt_sys.h"
-
-#include "SemihostFileHandle.h"
-
-extern "C" FILEHANDLE $Super$$_sys_open(const char *name, int openmode);
-
-namespace mbed {
-
-/* Class SemihostFileSystem
- * A file system invoking the standard semihosting implementation
- */
-class SemihostFileSystem : public Base {
-
-public:
-
- SemihostFileSystem(char* n) {
- name(n);
- _type = "SemihostFileSystem";
- }
-
- virtual FILEHANDLE sys_open(const char* name, int openmode) {
- FILEHANDLE fh = $Super$$_sys_open(name, openmode);
- FileHandle* fhc = new SemihostFileHandle(fh);
- return (FILEHANDLE)fhc;
- }
-
-};
-
-} // namespace mbed
-
-#endif
-
