mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-06 23:03:44 +00:00
Improving ADF7021 interface, fixing small bugs
This commit is contained in:
parent
83d1916b11
commit
fc0d47af0a
6 changed files with 55 additions and 43 deletions
10
IO.cpp
10
IO.cpp
|
|
@ -57,8 +57,10 @@ void CIO::process()
|
|||
|
||||
// Switch off the transmitter if needed
|
||||
if (m_txBuffer.getData() == 0U && m_tx) {
|
||||
m_tx = false;
|
||||
DEB_pin(LOW);
|
||||
setRX();
|
||||
m_tx = false;
|
||||
DEB_pin(LOW);
|
||||
}
|
||||
|
||||
if (m_rxBuffer.getData() >= 1U) {
|
||||
|
|
@ -83,6 +85,8 @@ void CIO::interrupt()
|
|||
return;
|
||||
|
||||
if(m_tx) {
|
||||
DEB_pin(HIGH);
|
||||
|
||||
m_txBuffer.get(bit);
|
||||
|
||||
if(bit)
|
||||
|
|
@ -98,7 +102,6 @@ void CIO::interrupt()
|
|||
|
||||
m_rxBuffer.put(bit);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CIO::start()
|
||||
|
|
@ -108,9 +111,6 @@ void CIO::start()
|
|||
if (m_started)
|
||||
return;
|
||||
|
||||
delay_rx();
|
||||
setRX();
|
||||
|
||||
startInt();
|
||||
|
||||
m_started = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue