diff --git a/demos/host/host_os_none/host_os_none.ewp b/demos/host/host_os_none/host_os_none.ewp index 3fb25d72b..d13ef942a 100644 --- a/demos/host/host_os_none/host_os_none.ewp +++ b/demos/host/host_os_none/host_os_none.ewp @@ -1026,7 +1026,7 @@ GenLowLevelInterface - 0 + 1 GEndianModeBE @@ -1070,7 +1070,7 @@ OGUseCmsis - 1 + 0 OGUseCmsisDspLib diff --git a/demos/host/host_os_none/host_os_none.uvopt b/demos/host/host_os_none/host_os_none.uvopt index 178b94254..da3b12632 100644 --- a/demos/host/host_os_none/host_os_none.uvopt +++ b/demos/host/host_os_none/host_os_none.uvopt @@ -629,7 +629,7 @@ 0 1 - 0 + 1 0 0 0 @@ -646,7 +646,7 @@ 0 0 0 - 0 + 1 0 0 0 @@ -916,10 +916,10 @@ 1 0 0 - 6 + 22 0 - 139 - 145 + 101 + 107 0 ..\src\main.c main.c @@ -1012,10 +1012,10 @@ 1 0 0 - 21 + 40 0 - 382 - 394 + 190 + 238 0 ..\src\cli.c cli.c @@ -1460,10 +1460,10 @@ 1 0 0 - 39 + 0 0 - 62 - 63 + 1 + 1 0 ..\..\..\vendor\fatfs\diskio.c diskio.c @@ -1476,10 +1476,10 @@ 1 0 0 - 17 + 0 0 - 2118 - 2122 + 1 + 1 0 ..\..\..\vendor\fatfs\ff.c ff.c @@ -1900,10 +1900,10 @@ 2 0 0 - 20 + 0 0 - 139 - 158 + 123 + 129 0 ..\..\bsp\lpc175x_6x\startup_keil\startup_LPC17xx.s startup_LPC17xx.s diff --git a/vendor/fatfs/diskio.c b/vendor/fatfs/diskio.c index 8d6794d47..ffcbbdfd0 100644 --- a/vendor/fatfs/diskio.c +++ b/vendor/fatfs/diskio.c @@ -105,7 +105,7 @@ DSTATUS disk_status (BYTE pdrv) DRESULT disk_read (BYTE pdrv, BYTE*buff, DWORD sector, BYTE count) { uint8_t usb_addr = pdrv+1; - + if ( TUSB_ERROR_NONE != tusbh_msc_read10(usb_addr, 0, buff, sector, count) ) return RES_ERROR; return wait_for_io_complete(usb_addr); diff --git a/vendor/fatfs/ff.c b/vendor/fatfs/ff.c index 28aca2b59..ee2b6c0f7 100644 --- a/vendor/fatfs/ff.c +++ b/vendor/fatfs/ff.c @@ -736,7 +736,7 @@ FRESULT sync_window ( DWORD wsect; UINT nf; - + if (fs->wflag) { /* Write back the sector if it is dirty */ wsect = fs->winsect; /* Current sector number */ if (disk_write(fs->drv, fs->win, wsect, 1) != RES_OK) @@ -975,7 +975,7 @@ FRESULT remove_chain ( #if _USE_ERASE if (ecl + 1 == nxt) { /* Is next cluster contiguous? */ ecl = nxt; - } else { /* End of contiguous clusters */ + } else { /* End of contiguous clusters */ rt[0] = clust2sect(fs, scl); /* Start sector */ rt[1] = clust2sect(fs, ecl) + fs->csize - 1; /* End sector */ disk_ioctl(fs->drv, CTRL_ERASE_SECTOR, rt); /* Erase the block */ @@ -2729,7 +2729,7 @@ FRESULT f_close ( FATFS *fs = fp->fs;; res = validate(fp); if (res == FR_OK) { - res = dec_lock(fp->lockid); + res = dec_lock(fp->lockid); unlock_fs(fs, FR_OK); } #else @@ -2831,7 +2831,7 @@ FRESULT f_getcwd ( res = dir_read(&dj, 0); if (res != FR_OK) break; if (ccl == ld_clust(dj.fs, dj.dir)) break; /* Found the entry */ - res = dir_next(&dj, 0); + res = dir_next(&dj, 0); } while (res == FR_OK); if (res == FR_NO_FILE) res = FR_INT_ERR;/* It cannot be 'not found'. */ if (res != FR_OK) break;