kopia lustrzana https://github.com/lucckb/libpsk
Initial class for isix driver handling
rodzic
e3cf9f2a56
commit
48992ab2cf
|
@ -2,6 +2,7 @@
|
||||||
LIBPSK_CPPSRC += $(wildcard $(LIBPSK_DIR)/libpsk/src/codec/*.cpp)
|
LIBPSK_CPPSRC += $(wildcard $(LIBPSK_DIR)/libpsk/src/codec/*.cpp)
|
||||||
LIBPSK_CPPSRC += $(wildcard $(LIBPSK_DIR)/libpsk/src/ham/*.cpp)
|
LIBPSK_CPPSRC += $(wildcard $(LIBPSK_DIR)/libpsk/src/ham/*.cpp)
|
||||||
LIBPSK_CPPSRC += $(wildcard $(LIBPSK_DIR)/libpsk/src/psk/*.cpp)
|
LIBPSK_CPPSRC += $(wildcard $(LIBPSK_DIR)/libpsk/src/psk/*.cpp)
|
||||||
|
LIBPSK_CPPSRC += $(wildcard $(LIBPSK_DIR)/libpsk/src/port/isix/*.cpp)
|
||||||
LIBPSK_INC += -I$(LIBPSK_DIR)/libpsk/include
|
LIBPSK_INC += -I$(LIBPSK_DIR)/libpsk/include
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#ifndef COMPILED_UNDER_ISIX
|
#ifndef COMPILED_UNDER_ISIX
|
||||||
#include "libpsk/port/pulse/pulse_device.hpp"
|
#include "libpsk/port/pulse/pulse_device.hpp"
|
||||||
#else
|
#else
|
||||||
#warning not implemented yet
|
#include "libpsk/port/isix/stm32adac_device.hpp"
|
||||||
#endif
|
#endif
|
||||||
#include "libpsk/psk/decoder.hpp"
|
#include "libpsk/psk/decoder.hpp"
|
||||||
#include "libpsk/psk/modulator.hpp"
|
#include "libpsk/psk/modulator.hpp"
|
||||||
|
@ -31,13 +31,13 @@ namespace {
|
||||||
#ifndef COMPILED_UNDER_ISIX
|
#ifndef COMPILED_UNDER_ISIX
|
||||||
inline trx_device_base* create_default_device( ham_digi::handler_t h )
|
inline trx_device_base* create_default_device( ham_digi::handler_t h )
|
||||||
{
|
{
|
||||||
static const int sys_idx = ham_digi::SYS_CALLBACK_ID;
|
static constexpr auto sys_idx = ham_digi::SYS_CALLBACK_ID;
|
||||||
return new pulse_device( std::bind(h, sys_idx, std::placeholders::_1) );
|
return new pulse_device( std::bind(h, sys_idx, std::placeholders::_1) );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
inline trx_device_base* create_default_device( ham_digi::handler_t h ) {
|
inline trx_device_base* create_default_device( ham_digi::handler_t h ) {
|
||||||
terminate();
|
static constexpr auto sys_idx = ham_digi::SYS_CALLBACK_ID;
|
||||||
return nullptr;
|
return new stm32adac_device( std::bind( h, sys_idx, std::placeholders::_1 ) );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue