OpenRTX/platform/targets/linux/hwconfig.h

67 wiersze
2.2 KiB
C

/***************************************************************************
* 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/> *
***************************************************************************/
#define PLATFORM_LINUX
/* Device has a working real time clock */
#define HAS_RTC
/* Supported radio bands */
#define BAND_VHF
#define BAND_UHF
/* Band limits in Hz */
#define FREQ_LIMIT_VHF_LO 136000000
#define FREQ_LIMIT_VHF_HI 174000000
#define FREQ_LIMIT_UHF_LO 400000000
#define FREQ_LIMIT_UHF_HI 480000000
/* Battery type */
#define BAT_LIPO_2S
#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"
#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