[spi] soft_spi_pin_init loop variable is initialized to 0

The loop variable in the function 'drv_soft_spi:xx_pin_init()' is initialized to 0.
This commit is contained in:
LZerro
2024-04-30 05:49:20 +08:00
committed by GitHub
parent 2aa66b1b4e
commit a92f971267
6 changed files with 7 additions and 7 deletions

View File

@@ -44,8 +44,8 @@ const pin_map_t pin_map_table[]=
{D20, GET_PIN(G, 0)},
{D21, GET_PIN(A, 0)},
{D22, GET_PIN(G, 5), "sspi1"}, /* SOFT-SPI-SCK */
{D23, GET_PIN(G, 3), "sspi1"}, /* SOFT-SPI-SCK */
{D24, GET_PIN(G, 1), "sspi1"}, /* SOFT-SPI-SCK */
{D23, GET_PIN(G, 3), "sspi1"}, /* SOFT-SPI-MISO */
{D24, GET_PIN(G, 1), "sspi1"}, /* SOFT-SPI-MOSI */
{D25, GET_PIN(G, 7), "i2c4"}, /* I2C-SCL (Wire) */
{D26, GET_PIN(D, 7), "i2c4"}, /* I2C-SDA (Wire) */
{D27, GET_PIN(B, 6), "i2c5"}, /* I2C-SCL (Wire) */