Horus disk_ioctl() fixed: CTRL_SYNC was missing, default return is now RES_OK;
This commit is contained in:
@@ -283,6 +283,16 @@ DRESULT disk_ioctl (
|
|||||||
*(WORD*)buff = SDCardInfo.CardBlockSize;
|
*(WORD*)buff = SDCardInfo.CardBlockSize;
|
||||||
res = RES_OK;
|
res = RES_OK;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CTRL_SYNC:
|
||||||
|
while (SD_GetStatus() == SD_TRANSFER_BUSY); /* Complete pending write process (needed at _FS_READONLY == 0) */
|
||||||
|
res = RES_OK;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
res = RES_OK;
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
@@ -30,8 +30,14 @@ if(MSVC)
|
|||||||
include_directories(${PROJECT_SOURCE_DIR}/winbuild C:/Programs/pthreads/Pre-built.2/include C:/Programs/msinttypes C:/Programs/dirent/include)
|
include_directories(${PROJECT_SOURCE_DIR}/winbuild C:/Programs/pthreads/Pre-built.2/include C:/Programs/msinttypes C:/Programs/dirent/include)
|
||||||
target_link_libraries(${SIMULATOR_TARGET} PRIVATE C:/Programs/pthreads/Pre-built.2/lib/pthreadVC2.lib)
|
target_link_libraries(${SIMULATOR_TARGET} PRIVATE C:/Programs/pthreads/Pre-built.2/lib/pthreadVC2.lib)
|
||||||
else()
|
else()
|
||||||
|
if (${CMAKE_VERSION} VERSION_LESS 3.1.0})
|
||||||
|
set(COMMON_CPP_FLAGS "${COMMON_FLAGS} -std=gnu++11")
|
||||||
|
message("USING -std=gnu++11")
|
||||||
|
else()
|
||||||
|
set(COMMON_CPP_FLAGS ${COMMON_FLAGS})
|
||||||
|
endif()
|
||||||
set(CMAKE_C_FLAGS_DEBUG "${COMMON_FLAGS} -g -O0")
|
set(CMAKE_C_FLAGS_DEBUG "${COMMON_FLAGS} -g -O0")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${COMMON_FLAGS} -g -O0")
|
set(CMAKE_CXX_FLAGS_DEBUG "${COMMON_CPP_FLAGS} -g -O0")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
|
|||||||
Reference in New Issue
Block a user