2020-10-23 07:51:29 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2020 by Frederik Saraci IU2NRO *
|
|
|
|
* *
|
|
|
|
* 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/> *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
2020-11-03 21:41:34 +00:00
|
|
|
#define PLATFORM_LINUX
|
|
|
|
|
2021-01-01 17:58:35 +00:00
|
|
|
/* Device has a working real time clock */
|
|
|
|
#define HAS_RTC
|
|
|
|
|
2020-12-31 13:51:19 +00:00
|
|
|
/* Supported radio bands */
|
|
|
|
#define BAND_VHF
|
|
|
|
#define BAND_UHF
|
|
|
|
|
|
|
|
/* Band limits in Hz */
|
|
|
|
#define FREQ_LIMIT_VHF_LO 136000000
|
2020-12-31 14:06:50 +00:00
|
|
|
#define FREQ_LIMIT_VHF_HI 174000000
|
2020-12-31 13:51:19 +00:00
|
|
|
#define FREQ_LIMIT_UHF_LO 400000000
|
|
|
|
#define FREQ_LIMIT_UHF_HI 480000000
|
|
|
|
|
2020-12-11 13:09:20 +00:00
|
|
|
/* Battery type */
|
|
|
|
#define BAT_LIPO_2S
|
|
|
|
|
2020-10-23 07:51:29 +00:00
|
|
|
#define GPIOA "PA"
|
|
|
|
#define GPIOB "PB"
|
|
|
|
#define GPIOC "PC"
|
|
|
|
#define GPIOD "PD"
|
|
|
|
#define GPIOE "PE"
|
|
|
|
#define GPIOF "PF"
|
|
|
|
#define GPIOG "PG"
|
|
|
|
#define GPIOH "PH"
|
|
|
|
#define GPIOI "PI"
|
|
|
|
#define GPIOJ "PJ"
|
2020-10-26 14:45:59 +00:00
|
|
|
#define GPIOK "PK"
|
|
|
|
|
|
|
|
/* Signalling LEDs */
|
|
|
|
#define GREEN_LED "GREEN_LED",0
|
|
|
|
#define RED_LED "RED_LED",1
|
|
|
|
|
|
|
|
/* Analog inputs */
|
|
|
|
#define AIN_VOLUME "AIN_VOLUME",0
|
|
|
|
#define AIN_VBAT "AIN_VBAT",1
|
|
|
|
#define AIN_MIC "AIN_MIC",3
|
|
|
|
#define AIN_RSSI "AIN_RSSI",0
|
|
|
|
|
|
|
|
/* Channel selection rotary encoder */
|
|
|
|
#define CH_SELECTOR_0 "CH_SELECTOR_0",14
|
|
|
|
#define CH_SELECTOR_1 "CH_SELECTOR_1",15
|
|
|
|
#define CH_SELECTOR_2 "CH_SELECTOR_2",10
|
|
|
|
#define CH_SELECTOR_3 "CH_SELECTOR_3",11
|
|
|
|
|
|
|
|
/* Push-to-talk switch */
|
|
|
|
#define PTT_SW "PTT_SW",11
|