Thomas Kolb
c8e0516e80
In the following events, the modem cannot switch to transmit mode for the given time: - after a preamble has been received, for 500 ms - after a packet has been successfully decoded, for 1 ms - after receive mode was initially enabled, for 500 ms Note that the times are that long to work around the RX/TX switching of the hackrf and can be hopefully reduced to <10 milliseconds in a later version.
63 lines
1.2 KiB
CMake
63 lines
1.2 KiB
CMake
cmake_minimum_required (VERSION 3.2)
|
|
project (hamnet70 VERSION 0.1 LANGUAGES C)
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
set(CMAKE_C_FLAGS "-Wall -pedantic -Wextra -DDEBUG_LIQUID")
|
|
|
|
include_directories(src)
|
|
|
|
# put all .cpp and .h files into the sources variable
|
|
set(sources
|
|
src/utils.c
|
|
src/utils.h
|
|
src/main.c
|
|
src/results.h
|
|
src/config.h
|
|
src/layer1/correlator.c
|
|
src/layer1/correlator.h
|
|
src/layer1/freq_est.c
|
|
src/layer1/freq_est.h
|
|
src/layer1/packet_mod.c
|
|
src/layer1/packet_mod.h
|
|
src/layer1/preamble.c
|
|
src/layer1/preamble.h
|
|
src/layer1/transmission.c
|
|
src/layer1/transmission.h
|
|
src/layer1/tx.c
|
|
src/layer1/tx.h
|
|
src/layer1/rx.c
|
|
src/layer1/rx.h
|
|
src/layer1/whitening.c
|
|
src/layer1/whitening.h
|
|
src/layer1/modcod.c
|
|
src/layer1/modcod.h
|
|
src/layer2/tundev.c
|
|
src/layer2/tundev.h
|
|
src/sdr/sdr.c
|
|
src/sdr/sdr.h
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_PROJECT_NAME}
|
|
)
|
|
|
|
add_executable(
|
|
${CMAKE_PROJECT_NAME}
|
|
${sources}
|
|
)
|
|
|
|
# use static linking for liquid, as dynamic linking currently does not work
|
|
# with liquid_error_info(). See github issue
|
|
# https://github.com/jgaeddert/liquid-dsp/issues/260.
|
|
target_link_libraries(
|
|
${CMAKE_PROJECT_NAME}
|
|
libliquid.a
|
|
m
|
|
rt
|
|
fftw3f
|
|
fec
|
|
SoapySDR
|
|
)
|
|
|
|
add_subdirectory(test)
|