Mar 11, 2023
09:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 11, 2023
09:50 PM
1 Reply
Mar 12, 2023
08:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 12, 2023
08:37 PM
while((SPIM_1_ReadTxStatus() & SPIM_1_STS_SPI_IDLE) == 0) 逻辑上有漏洞,因为此位置 TxStatus 不一定就是 idle, 还可能是 Done, 而且我建议你使用 if(SPIM_1_ReadTxStatus() & (SPIM_1_STS_SPI_IDLE | SPIM_1_STS_SPI_DONE)) 这样的用法,然后把 WriteTx 动作放在 if 语句之内。
This widget could not be displayed.