Skip to content

Commit

Permalink
Disabled HackRF and updated Visual Studio Solution to 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
racerxdl committed Apr 9, 2017
1 parent 4ebaf35 commit 210bc34
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Debug
Release
*.VC.*
airspy
librtlsdr
build
4 changes: 2 additions & 2 deletions decoder/xritDecoder.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<UseOfMfc>Static</UseOfMfc>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
Expand Down Expand Up @@ -161,7 +161,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=2;GIT_SHA1=Microsoft Visual C++ Compiler</PreprocessorDefinitions>
<PreprocessorDefinitions>_USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=3;GIT_SHA1=Microsoft Visual C++ Compiler</PreprocessorDefinitions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
</ClCompile>
<Link>
Expand Down
2 changes: 2 additions & 0 deletions demodulator/src/HackRFFrontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Author: Lucas Teske
*/

#if 0
#include "HackRFFrontend.h"
#include <SatHelper/exceptions.h>
#include <iostream>
Expand Down Expand Up @@ -222,3 +223,4 @@ uint32_t HackRFFrontend::GetSampleRate() {
void HackRFFrontend::SetSamplesAvailableCallback(std::function<void(void*data, int length, int type)> cb) {
this->cb = cb;
}
#endif
4 changes: 4 additions & 0 deletions demodulator/src/HackRFFrontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Author: Lucas Teske
*/

#if 0

#ifndef SRC_HACKRFFRONTEND_H_
#define SRC_HACKRFFRONTEND_H_

Expand Down Expand Up @@ -61,3 +63,5 @@ class HackRFFrontend: public FrontendDevice {
};

#endif /* SRC_HACKRFFRONTEND_H_ */

#endif
2 changes: 2 additions & 0 deletions demodulator/src/demodulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,14 @@ int main(int argc, char **argv) {
device = new RtlFrontend(deviceNumber);
device->SetSampleRate(sampleRate);
device->SetCenterFrequency(centerFrequency);
#if 0
} else if (parser[CFG_DEVICE_TYPE] == "hackrf") {
std::cout << "HackRF Frontend selected. Device Number: " << deviceNumber << std::endl;
HackRFFrontend::Initialize();
device = new HackRFFrontend(deviceNumber);
device->SetSampleRate(sampleRate);
device->SetCenterFrequency(centerFrequency);
#endif
#ifdef NON_FREE
} else if (parser[CFG_DEVICE_TYPE] == "sdrplay") {
std::cout << "SDRPlay Frontend selected." << std::endl;
Expand Down
16 changes: 11 additions & 5 deletions demodulator/xritDemodulator.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Static</UseOfMfc>
<UseOfMfc>false</UseOfMfc>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
Expand Down Expand Up @@ -87,8 +87,8 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<LibraryPath>..\sathelper;..\correct;..\airspy;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86</LibraryPath>
<IncludePath>..\sathelper;..\correct;..\airspy;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
<LibraryPath>..\librtlsdr;..\sathelper;..\correct;..\airspy;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86</LibraryPath>
<IncludePath>..\librtlsdr\include;..\sathelper;..\correct;..\airspy;$(VC_IncludePath);$(WindowsSDK_IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
Expand Down Expand Up @@ -133,14 +133,14 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=2;GIT_SHA1=Microsoft Visual C++ Compiler</PreprocessorDefinitions>
<PreprocessorDefinitions>_USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;MAJOR_VERSION=1;MINOR_VERSION=0;MAINT_VERSION=3;GIT_SHA1=Microsoft Visual C++ Compiler</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>SatHelper.lib;libcorrect.lib;airspy.lib</AdditionalDependencies>
<AdditionalDependencies>SatHelper.lib;libcorrect.lib;airspy.lib;librtlsdr.lib</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand Down Expand Up @@ -168,7 +168,10 @@
<ClInclude Include="src\DiagManager.h" />
<ClInclude Include="src\ExitHandler.h" />
<ClInclude Include="src\FrontendDevice.h" />
<ClInclude Include="src\HackRFFrontend.h" />
<ClInclude Include="src\Parameters.h" />
<ClInclude Include="src\RtlFrontend.h" />
<ClInclude Include="src\SDRPlayFrontend.h" />
<ClInclude Include="src\SymbolManager.h" />
</ItemGroup>
<ItemGroup>
Expand All @@ -177,6 +180,9 @@
<ClCompile Include="src\demodulator.cpp" />
<ClCompile Include="src\DiagManager.cpp" />
<ClCompile Include="src\ExitHandler.cpp" />
<ClCompile Include="src\HackRFFrontend.cpp" />
<ClCompile Include="src\RtlFrontend.cpp" />
<ClCompile Include="src\SDRPlayFrontend.cpp" />
<ClCompile Include="src\SymbolManager.cpp" />
</ItemGroup>
<ItemGroup>
Expand Down
18 changes: 18 additions & 0 deletions demodulator/xritDemodulator.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
<ClInclude Include="src\ExitHandler.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\HackRFFrontend.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\RtlFrontend.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\SDRPlayFrontend.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\AirspyDevice.cpp">
Expand All @@ -59,6 +68,15 @@
<ClCompile Include="src\ExitHandler.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\HackRFFrontend.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\RtlFrontend.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\SDRPlayFrontend.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="xritDemodulator.rc">
Expand Down

0 comments on commit 210bc34

Please sign in to comment.