本帖最后由 缘分落地生根是他们 于 2017-10-29 17:53 编辑 HAL_SPI_Receive接收数据时代码: while (hspi->RxXferCount > 0U) { /* Check the RXNE flag */ if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) { /* read the received data */ (* (uint8_t *)pData) = *(__IO uint8_t *)&hspi->Instance->DR; pData += sizeof(uint8_t); hspi->RxXferCount--; } else { /* Timeout management */ if ((Timeout == 0U) || ((Timeout != HAL_MAX_DELAY) && ((HAL_GetTick() - tickstart) >= Timeout))) { errorcode = HAL_TIMEOUT; goto error; } } } if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE))一直卡在这一句怎么办 |
http://blog.csdn.net/wuhuijun165/article/details/75008464
评分
查看全部评分
评分
查看全部评分
评分
查看全部评分