Add support for BridgeCom SkyBridge HS

This commit is contained in:
Andy CA6JAU 2020-11-08 13:13:54 -03:00
parent 89daa20476
commit 956ee1a81c
30 changed files with 312 additions and 60 deletions

6
IO.cpp
View file

@ -1,6 +1,6 @@
/*
* Copyright (C) 2015,2016 by Jonathan Naylor G4KLX
* Copyright (C) 2016,2017,2018 by Andy Uribe CA6JAU
* Copyright (C) 2016,2017,2018,2019,2020 by Andy Uribe CA6JAU
* Copyright (C) 2017 by Danilo DB4PLE
* This program is free software; you can redistribute it and/or modify
@ -307,7 +307,7 @@ bool CIO::hasRXOverflow()
return m_rxBuffer.hasOverflowed();
}
#if defined(ZUMSPOT_ADF7021)
#if defined(ZUMSPOT_ADF7021) || defined(SKYBRIDGE_HS)
void CIO::checkBand(uint32_t frequency_rx, uint32_t frequency_tx) {
if (!(io.hasSingleADF7021())) {
// There are two ADF7021s on the board
@ -380,7 +380,7 @@ uint8_t CIO::setFreq(uint32_t frequency_rx, uint32_t frequency_tx, uint8_t rf_po
#endif
// Check if we have a single, dualband or duplex board
#if defined (ZUMSPOT_ADF7021)
#if defined(ZUMSPOT_ADF7021) || defined(SKYBRIDGE_HS)
if (checkZUMspot(frequency_rx, frequency_tx) > 0) {
return 4U;
}