diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-16 14:09:51 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-21 22:30:32 +0200 |
commit | dffa9f6da65cd03e834b2ed3914f40428f72e49f (patch) | |
tree | 1f2e51f17c511f884db77e47d481c0f9c1b6bed2 /cc3200/mods/moduos.h | |
parent | 660f8613fd8e38863998a9758d97eada0eebc47d (diff) | |
download | micropython-dffa9f6da65cd03e834b2ed3914f40428f72e49f.tar.gz micropython-dffa9f6da65cd03e834b2ed3914f40428f72e49f.zip |
cc3200: New SD and RTC API plus os and time modules' extensions.
Diffstat (limited to 'cc3200/mods/moduos.h')
-rw-r--r-- | cc3200/mods/moduos.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cc3200/mods/moduos.h b/cc3200/mods/moduos.h index 7e01148d71..99172b7061 100644 --- a/cc3200/mods/moduos.h +++ b/cc3200/mods/moduos.h @@ -28,5 +28,20 @@ #ifndef MODUOS_H_ #define MODUOS_H_ +typedef struct _os_fs_mount_t { + mp_obj_t device; + const char *path; + mp_uint_t pathlen; + mp_obj_t readblocks[4]; + mp_obj_t writeblocks[4]; + mp_obj_t sync[2]; + mp_obj_t count[2]; + FATFS fatfs; + uint8_t vol; +} os_fs_mount_t; + +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); #endif // MODUOS_H_ |