mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-03-04 11:43:49 +01:00
Fixed Cmake file to compile on Computer
added debug statements to ConnectSerial function
This commit is contained in:
parent
d2ada3faeb
commit
ddf0deabf6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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++ )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue