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/pybsd.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/pybsd.h')
-rw-r--r-- | cc3200/mods/pybsd.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/cc3200/mods/pybsd.h b/cc3200/mods/pybsd.h index 145c7dc411..a06df6d8d1 100644 --- a/cc3200/mods/pybsd.h +++ b/cc3200/mods/pybsd.h @@ -26,12 +26,19 @@ #ifndef PYBSD_H_ #define PYBSD_H_ -#if MICROPY_HW_HAS_SDCARD -extern const mp_obj_type_t pyb_sd_type; +/****************************************************************************** + DEFINE PUBLIC TYPES + ******************************************************************************/ +typedef struct { + mp_obj_base_t base; + mp_obj_t pin_clk; + bool enabled; +} pybsd_obj_t; -void pybsd_pre_init (void); -void pybsd_disable (void); -bool pybsd_is_mounted (void); -#endif +/****************************************************************************** + DECLARE EXPORTED DATA + ******************************************************************************/ +extern pybsd_obj_t pybsd_obj; +extern const mp_obj_type_t pyb_sd_type; #endif // PYBSD_H_ |