mirror of
https://github.com/g4klx/MMDVM_HS.git
synced 2026-03-01 10:44:50 +01:00
Fix compilation for most of the boards
This commit is contained in:
parent
754a9c6657
commit
c1e279af7d
2
IO.cpp
2
IO.cpp
|
|
@ -307,6 +307,7 @@ bool CIO::hasRXOverflow()
|
|||
return m_rxBuffer.hasOverflowed();
|
||||
}
|
||||
|
||||
#if defined(ZUMSPOT_ADF7021)
|
||||
void CIO::checkBand(uint32_t frequency_rx, uint32_t frequency_tx) {
|
||||
if (!(io.hasSingleADF7021())) {
|
||||
// There are two ADF7021s on the board
|
||||
|
|
@ -345,6 +346,7 @@ uint8_t CIO::checkZUMspot(uint32_t frequency_rx, uint32_t frequency_tx) {
|
|||
}
|
||||
return 0U;
|
||||
}
|
||||
#endif
|
||||
|
||||
uint8_t CIO::setFreq(uint32_t frequency_rx, uint32_t frequency_tx, uint8_t rf_power, uint32_t pocsag_freq_tx)
|
||||
{
|
||||
|
|
|
|||
6
IO.h
6
IO.h
|
|
@ -115,8 +115,6 @@ public:
|
|||
void process(void);
|
||||
bool hasTXOverflow(void);
|
||||
bool hasRXOverflow(void);
|
||||
void checkBand(uint32_t frequency_rx, uint32_t frequency_tx);
|
||||
uint8_t checkZUMspot(uint32_t frequency_rx, uint32_t frequency_tx);
|
||||
uint8_t setFreq(uint32_t frequency_rx, uint32_t frequency_tx, uint8_t rf_power, uint32_t pocsag_freq_tx);
|
||||
void setPower(uint8_t power);
|
||||
void setMode(MMDVM_STATE modemState);
|
||||
|
|
@ -126,9 +124,13 @@ public:
|
|||
uint32_t getWatchdog(void);
|
||||
void getIntCounter(uint16_t &int1, uint16_t &int2);
|
||||
void selfTest(void);
|
||||
#if defined(ZUMSPOT_ADF7021)
|
||||
void checkBand(uint32_t frequency_rx, uint32_t frequency_tx);
|
||||
uint8_t checkZUMspot(uint32_t frequency_rx, uint32_t frequency_tx);
|
||||
void setBandVHF(bool vhf_on);
|
||||
bool hasSingleADF7021(void);
|
||||
bool isDualBand(void);
|
||||
#endif
|
||||
|
||||
// RF interface API
|
||||
void setTX(void);
|
||||
|
|
|
|||
|
|
@ -754,6 +754,7 @@ void CIO::COS_pin(bool on)
|
|||
GPIO_WriteBit(PORT_COS_LED, PIN_COS_LED, on ? Bit_SET : Bit_RESET);
|
||||
}
|
||||
|
||||
#if defined(ZUMSPOT_ADF7021)
|
||||
void CIO::setBandVHF(bool vhf_on) {
|
||||
GPIO_WriteBit(PORT_SET_BAND, PIN_SET_BAND, vhf_on ? Bit_SET : Bit_RESET);
|
||||
}
|
||||
|
|
@ -765,6 +766,7 @@ bool CIO::hasSingleADF7021() {
|
|||
bool CIO::isDualBand() {
|
||||
return GPIO_ReadInputDataBit(PORT_DL_DPX, PIN_DL_DPX) == Bit_SET;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Function delay_us() from stm32duino project
|
||||
|
|
|
|||
Loading…
Reference in a new issue