From fd49cff8e86608cd79e44d8d257e184b95c7dbdd Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 6 May 2013 20:09:06 +0700 Subject: add stub for msc host & hub driver --- tinyusb/class/msc_host.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'tinyusb/class/msc_host.c') diff --git a/tinyusb/class/msc_host.c b/tinyusb/class/msc_host.c index c14d39e2f..5d0630813 100644 --- a/tinyusb/class/msc_host.c +++ b/tinyusb/class/msc_host.c @@ -38,14 +38,15 @@ #include "tusb_option.h" - +#if MODE_HOST_SUPPORTED & TUSB_CFG_HOST_MSC #define _TINY_USB_SOURCE_FILE_ - //--------------------------------------------------------------------+ // INCLUDE //--------------------------------------------------------------------+ +#include "common/common.h" +#include "msc_host.h" //--------------------------------------------------------------------+ // MACRO CONSTANT TYPEDEF @@ -58,3 +59,25 @@ //--------------------------------------------------------------------+ // IMPLEMENTATION //--------------------------------------------------------------------+ +void msch_init(void) +{ + +} + +tusb_error_t msch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t const *descriptor, uint16_t *p_length) +{ + return TUSB_ERROR_NONE; +} + +void msch_isr(pipe_handle_t pipe_hdl, tusb_event_t event) +{ + +} + +void msch_close(uint8_t dev_addr) +{ + +} + + +#endif -- cgit v1.3.1