diff --git a/rt-thread-version/rt-thread-standard/programming-manual/device/spi/spi.md b/rt-thread-version/rt-thread-standard/programming-manual/device/spi/spi.md index 01873bf2bff8cb5cbc486e9caffb6290a45f7977..697835929d5b4f3a196418e9e8d33ee0304638cc 100644 --- a/rt-thread-version/rt-thread-standard/programming-manual/device/spi/spi.md +++ b/rt-thread-version/rt-thread-standard/programming-manual/device/spi/spi.md @@ -112,7 +112,7 @@ static int rt_hw_spi_flash_init(void) LOG_E("Failed to malloc the spi device."); return -RT_ENOMEM; } - if (RT_EOK != rt_spi_bus_attach_device_cspin(spi_device, "spi1", "spi10",GET_PIN(B, 14), RT_NULL)) + if (RT_EOK != rt_spi_bus_attach_device_cspin(spi_device, "spi10", "spi1",GET_PIN(B, 14), RT_NULL)) { LOG_E("Failed to attach the spi device."); return -RT_ERROR;