94 lines
2.2 KiB
C
94 lines
2.2 KiB
C
/***************************************************************************
|
|
* Copyright (C) 2023 by Federico Amedeo Izzo IU2NUO, *
|
|
* Niccolò Izzo IU2KIN *
|
|
* 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 <http://www.gnu.org/licenses/> *
|
|
***************************************************************************/
|
|
|
|
#include <interfaces/platform.h>
|
|
#include <hwconfig.h>
|
|
|
|
static const hwInfo_t hwInfo =
|
|
{
|
|
.uhf_maxFreq = 430,
|
|
.uhf_minFreq = 440,
|
|
.uhf_band = 1,
|
|
.name = "ttwrplus"
|
|
};
|
|
|
|
|
|
void platform_init()
|
|
{
|
|
}
|
|
|
|
void platform_terminate()
|
|
{
|
|
}
|
|
|
|
uint16_t platform_getVbat()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
uint8_t platform_getMicLevel()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
uint8_t platform_getVolumeLevel()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int8_t platform_getChSelector()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
bool platform_getPttStatus()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool platform_pwrButtonStatus()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void platform_ledOn(led_t led)
|
|
{
|
|
(void) led;
|
|
}
|
|
|
|
void platform_ledOff(led_t led)
|
|
{
|
|
(void) led;
|
|
}
|
|
|
|
void platform_beepStart(uint16_t freq)
|
|
{
|
|
(void) freq;
|
|
}
|
|
|
|
void platform_beepStop()
|
|
{
|
|
}
|
|
|
|
const hwInfo_t *platform_getHwInfo()
|
|
{
|
|
return &hwInfo;
|
|
}
|
|
|