diff --git a/meson.build b/meson.build index 0e9c520e..41597a3b 100644 --- a/meson.build +++ b/meson.build @@ -209,7 +209,7 @@ md390_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c', 'platform/drivers/ADC/ADC1_MDx.c', 'platform/drivers/tones/toneGenerator_MDx.c', 'platform/drivers/baseband/pll_MD3x0.c', - 'platform/drivers/baseband/rtx_MD3x0.c', + 'platform/drivers/baseband/radio_MD3x0.c', 'platform/drivers/baseband/HR-C5000_MD3x0.c', 'platform/targets/MD-390/platform.c'] @@ -225,7 +225,7 @@ mduv380_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c', 'platform/drivers/NVM/nvmem_MDUV3x0.c', 'platform/drivers/ADC/ADC1_MDx.c', 'platform/drivers/tones/toneGenerator_MDx.c', - 'platform/drivers/baseband/rtx_UV3x0.c', + 'platform/drivers/baseband/radio_UV3x0.c', 'platform/targets/MD-UV380/platform.c'] mduv380_inc = inc + stm32f405_inc + ['platform/targets/MD-UV380'] diff --git a/platform/drivers/baseband/radio_UV3x0.c b/platform/drivers/baseband/radio_UV3x0.c new file mode 100644 index 00000000..09e7f262 --- /dev/null +++ b/platform/drivers/baseband/radio_UV3x0.c @@ -0,0 +1,85 @@ +/*************************************************************************** + * Copyright (C) 2020 by Federico Amedeo Izzo IU2NUO, * + * Niccolò Izzo IU2KIN * + * Frederik Saraci IU2NRO * + * Silvano Seva IU2KWO * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, see * + ***************************************************************************/ + +#include + +void radio_init() +{ + +} + +void radio_terminate() +{ + +} + +void radio_setBandwidth(const enum bandwidth bw) +{ + (void) bw; +} + +void radio_setOpmode(const enum opmode mode) +{ + (void) mode; +} + +void radio_setVcoFrequency(const freq_t frequency, const bool isTransmitting) +{ + (void) frequency; + (void) isTransmitting; +} + +void radio_setCSS(const tone_t rxCss, const tone_t txCss) +{ + (void) rxCss; + (void) txCss; +} + +bool radio_checkRxDigitalSquelch() +{ + +} + +void radio_enableRx() +{ + +} + +void radio_enableTx(const float txPower, const bool enableCss) +{ + (void) txPower; + (void) enableCss; +} + +void radio_disableRtx() +{ + +} + +void radio_updateCalibrationParams(const rtxStatus_t* rtxCfg) +{ + (void) rtxCfg; +} + +float radio_getRssi(const freq_t rxFreq) +{ + (void) rxFreq; + return -100.0f; +}