Fixed Cmake file to compile on Computer

added debug statements to ConnectSerial function
This commit is contained in:
Hayley 2019-07-15 09:54:29 -05:00
parent d2ada3faeb
commit ddf0deabf6
2 changed files with 25 additions and 2 deletions

View file

@ -7,7 +7,7 @@ set(CMAKE_SYSTEM_VERSION gnu)
set(CMAKE_VERBOSE_MAKEFILE ON)
## Setting up the four types of builds we have
set(CMAKE_CONFIGURATION_TYPES "ThumbDV_Debug;ThumbDV_Release" CACHE STRING "" FORCE)
set(CMAKE_CONFIGURATION_TYPES "ThumbDV_Debug;ThumbDV_Release;Test_Dongle" CACHE STRING "" FORCE)
include_directories(.)
include_directories(include)
@ -57,7 +57,22 @@ if (CMAKE_BUILD_TYPE MATCHES ThumbDV_Release)
-MP
-MF
)
elseif(CMAKE_BUILD_TYPE MATCHES Test_Dongle)
target_compile_options(thumbdv PRIVATE
-U_FORTIFY_SOURCE
-O3
#-mcpu=cortex-a8
#-mfpu=neon
#-mfloat-abi=softfp
-ftree-vectorize
-Wall
-c
-fmessage-length=0
-lpthread
-MMD
-MP
-MF
)
elseif(CMAKE_BUILD_TYPE MATCHES ThumbDV_Debug)
target_compile_options(thumbdv PRIVATE
-O0

View file

@ -676,10 +676,18 @@ static void _connectSerial( FT_HANDLE * ftHandle )
do {
status = FT_CreateDeviceInfoList(&numDevs);
if (status != FT_OK)
{
output("Unable to create Device Info \n");
}
devInfo = (FT_DEVICE_LIST_INFO_NODE *) safe_malloc(sizeof(FT_DEVICE_LIST_INFO_NODE) * numDevs);
status = FT_GetDeviceInfoList(devInfo, &numDevs);
if (status != FT_OK)
{
output("Unable to fetch Device Info \n");
}
for ( i = 0 ; i < numDevs ; i++ )
{