increase msc host app task stack size to 512 so that copy command can be executed

This commit is contained in:
hathach 2014-03-02 18:11:30 +07:00
parent 5f8f046eaa
commit b5ce076d8d
2 changed files with 5 additions and 2 deletions

View File

@ -58,7 +58,7 @@
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION // 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; static FATFS fatfs[TUSB_CFG_HOST_DEVICE_MAX] TUSB_CFG_ATTR_USBRAM;

View File

@ -42,8 +42,8 @@
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// INCLUDE // INCLUDE
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
#include "ffconf.h"
#include "diskio.h" #include "diskio.h"
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF // MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
@ -63,6 +63,9 @@ static DRESULT wait_for_io_complete(uint8_t usb_addr)
while ( tusbh_msc_is_busy(usb_addr) ) while ( tusbh_msc_is_busy(usb_addr) )
{ {
// TODO should have timeout here // TODO should have timeout here
#if TUSB_CFG_OS != TUSB_OS_NONE
osal_task_delay(10);
#endif
} }
return RES_OK; return RES_OK;