Skip to content

Commit

Permalink
Update drv_spi.c
Browse files Browse the repository at this point in the history
  • Loading branch information
JOONH0o authored Feb 19, 2025
1 parent fca9804 commit 496a232
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bsp/hc32/libraries/hc32_drivers/drv_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,6 @@ static int32_t hc32_spi_dma_trans(struct hc32_spi_config *spi_config, const uint
while ((RESET == DMA_GetTransCompleteStatus(DmaInstance, DmaFlag)) &&
(u32TimeoutCnt < spi_config->timeout))
{
// rt_thread_mdelay(1);
// u32TimeoutCnt++;
}
if (u32TimeoutCnt >= spi_config->timeout)
{
Expand Down Expand Up @@ -601,8 +599,6 @@ static rt_ssize_t hc32_spi_xfer(struct rt_spi_device *device, struct rt_spi_mess
while ((RESET == SPI_GetStatus(spi_instance, SPI_FLAG_IDLE)) &&
(u32TimeoutCnt < spi_drv->config->timeout))
{
// rt_thread_mdelay(1);
// u32TimeoutCnt++;
}
if (u32TimeoutCnt >= spi_drv->config->timeout)
{
Expand Down

0 comments on commit 496a232

Please sign in to comment.