summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-02 18:11:30 +0700
committerhathach <[email protected]>2014-03-02 18:11:30 +0700
commitb5ce076d8d8806f4e3e93a2e6178eb33e831abff (patch)
tree9fd276de422631c78c86f0d4f909d8079d48df69
parent5f8f046eaa10f434b9bbb7f7cd0ed0f9dad24952 (diff)
increase msc host app task stack size to 512 so that copy command can be executed
-rw-r--r--demos/host/src/msc_app.c2
-rw-r--r--vendor/fatfs/diskio.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/demos/host/src/msc_app.c b/demos/host/src/msc_app.c
index 2c5096e11..520bfa5b1 100644
--- a/demos/host/src/msc_app.c
+++ b/demos/host/src/msc_app.c
@@ -58,7 +58,7 @@
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
-OSAL_TASK_DEF(msc_app_task, 300, MSC_APP_TASK_PRIO);
+OSAL_TASK_DEF(msc_app_task, 512, MSC_APP_TASK_PRIO);
static FATFS fatfs[TUSB_CFG_HOST_DEVICE_MAX] TUSB_CFG_ATTR_USBRAM;
diff --git a/vendor/fatfs/diskio.c b/vendor/fatfs/diskio.c
index e6b777fef..8d6794d47 100644
--- a/vendor/fatfs/diskio.c
+++ b/vendor/fatfs/diskio.c
@@ -42,8 +42,8 @@
//--------------------------------------------------------------------+
// INCLUDE
//--------------------------------------------------------------------+
+#include "ffconf.h"
#include "diskio.h"
-
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
@@ -63,6 +63,9 @@ static DRESULT wait_for_io_complete(uint8_t usb_addr)
while ( tusbh_msc_is_busy(usb_addr) )
{
// TODO should have timeout here
+ #if TUSB_CFG_OS != TUSB_OS_NONE
+ osal_task_delay(10);
+ #endif
}
return RES_OK;