icf->ifc typo
This commit is contained in:
parent
bdc796a8ce
commit
9ff4e76623
6 changed files with 14 additions and 14 deletions
|
@ -176,7 +176,7 @@ void LL_HsUsart::RxDmaIrq()
|
|||
{
|
||||
++m_stats.rcvd;
|
||||
if(*m_rxDma.GetIsReg() & m_rxDma.GetTcMask()) {
|
||||
*m_rxDma.GetIcfReg() = m_rxDma.GetTcMask();
|
||||
*m_rxDma.GetIfcReg() = m_rxDma.GetTcMask();
|
||||
if(CheckHeader(m_rxBuffers[m_rxBufferSelector].packet.header))
|
||||
LL_CrcHandler::Instance().Enqueue(m_crcSlot, 1,
|
||||
&m_rxBuffers[m_rxBufferSelector].packet,
|
||||
|
@ -187,7 +187,7 @@ void LL_HsUsart::RxDmaIrq()
|
|||
m_rxBuffers[m_rxBufferSelector].error = true;
|
||||
}
|
||||
} else if(*m_rxDma.GetIsReg() & m_rxDma.GetTeMask()) {
|
||||
*m_rxDma.GetIcfReg() = m_rxDma.GetTeMask();
|
||||
*m_rxDma.GetIfcReg() = m_rxDma.GetTeMask();
|
||||
m_rxBuffers[m_rxBufferSelector].error = 1;
|
||||
++m_stats.dmaError;
|
||||
}
|
||||
|
@ -229,21 +229,21 @@ void LL_HsUsart::CrcFailed(uintptr_t callbackParam, uint32_t crc, int prio)
|
|||
void LL_HsUsart::TxDmaIrq()
|
||||
{
|
||||
if(*m_txDma.GetIsReg() & m_txDma.GetTcMask()) { // DMA transfer complete
|
||||
*m_txDma.GetIcfReg() = m_txDma.GetTcMask();
|
||||
*m_txDma.GetIfcReg() = m_txDma.GetTcMask();
|
||||
LL_USART_EnableIT_TC(m_usart);
|
||||
LL_DMA_DisableStream(m_txDma.GetDma(), m_txDma.GetStream());
|
||||
}
|
||||
else if(*m_txDma.GetIsReg() & m_txDma.GetTeMask()) {
|
||||
*m_txDma.GetIcfReg() = m_txDma.GetTeMask();
|
||||
*m_txDma.GetIfcReg() = m_txDma.GetTeMask();
|
||||
m_txBuffer.error = 1;
|
||||
++m_stats.dmaError;
|
||||
}
|
||||
if(*m_txDma.GetIsReg() & m_txDma.GetFeMask())
|
||||
*m_txDma.GetIcfReg() = m_txDma.GetFeMask();
|
||||
*m_txDma.GetIfcReg() = m_txDma.GetFeMask();
|
||||
if(*m_txDma.GetIsReg() & m_txDma.GetHtMask())
|
||||
*m_txDma.GetIcfReg() = m_txDma.GetHtMask();
|
||||
*m_txDma.GetIfcReg() = m_txDma.GetHtMask();
|
||||
if(*m_txDma.GetIsReg() & m_txDma.GetDmeMask())
|
||||
*m_txDma.GetIcfReg() = m_txDma.GetDmeMask();
|
||||
*m_txDma.GetIfcReg() = m_txDma.GetDmeMask();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue