summaryrefslogtreecommitdiff
path: root/cc3200/mods/moduos.h
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-09-25 15:20:07 +0200
committerDaniel Campora <daniel@wipy.io>2015-09-27 11:27:24 +0200
commitef369249cb406758ec1caa9a212478ef69fd7ff0 (patch)
tree3b8e4b4358417693179b488dd79cb3b232538a6b /cc3200/mods/moduos.h
parenta7261ae059f171e9677a86c59c7f7ed9e24b7ace (diff)
cc3200: Implement support for os.dupterm().
Diffstat (limited to 'cc3200/mods/moduos.h')
-rw-r--r--cc3200/mods/moduos.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cc3200/mods/moduos.h b/cc3200/mods/moduos.h
index 99172b706..fa5907125 100644
--- a/cc3200/mods/moduos.h
+++ b/cc3200/mods/moduos.h
@@ -28,6 +28,11 @@
#ifndef MODUOS_H_
#define MODUOS_H_
+#include "ff.h"
+
+/******************************************************************************
+ DEFINE PUBLIC TYPES
+ ******************************************************************************/
typedef struct _os_fs_mount_t {
mp_obj_t device;
const char *path;
@@ -40,6 +45,15 @@ typedef struct _os_fs_mount_t {
uint8_t vol;
} os_fs_mount_t;
+typedef struct _os_term_dup_obj_t {
+ mp_obj_t stream_o;
+ mp_obj_t read[3];
+ mp_obj_t write[3];
+} os_term_dup_obj_t;
+
+/******************************************************************************
+ DECLARE PUBLIC FUNCTIONS
+ ******************************************************************************/
void moduos_init0 (void);
os_fs_mount_t *osmount_find_by_path (const char *path);
os_fs_mount_t *osmount_find_by_volume (uint8_t vol);