发送长度需要乘以4,增加轮询fifo是否已经填满

This commit is contained in:
RuigeLee
2024-10-28 10:38:34 +08:00
parent 0ce1a08586
commit 126ea745fd

View File

@@ -41,8 +41,9 @@ int main()
// udelay(50);
*(cdr_0_tx_txLen) = 32;
*(cdr_0_tx_txLen) = 32*4;
for( uint8_t i = 0; i < 32; i ++ ){
while( (*cdr_0_tx_status & 0x1) );
*cdr_0_tx_txFifo = 32-i;
}