From 53a64369de6f21d04c100af093e728122960f5bc Mon Sep 17 00:00:00 2001 From: tianjialong Date: Sun, 12 Mar 2023 21:00:05 +0800 Subject: [PATCH] update --- app/MDK-ARM/app.uvguix.29643 | 4 ++-- usersrc/usermain.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/MDK-ARM/app.uvguix.29643 b/app/MDK-ARM/app.uvguix.29643 index fcae4b6..d1b1142 100644 --- a/app/MDK-ARM/app.uvguix.29643 +++ b/app/MDK-ARM/app.uvguix.29643 @@ -1883,9 +1883,9 @@ ..\..\usersrc\usermain.c - 3 + 0 83 - 100 + 105 1 0 diff --git a/usersrc/usermain.c b/usersrc/usermain.c index c78da33..0ebc1b2 100644 --- a/usersrc/usermain.c +++ b/usersrc/usermain.c @@ -33,7 +33,7 @@ typedef enum uint8_t table[SPI_TYPE_NUMBER][spi_table_type_size] = { {1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1}, // sel {1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, // sck - {1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1}, // mosi + {1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, // mosi {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, // miso }; @@ -134,7 +134,7 @@ void dotable(uint8_t txdata) set_spi_table_sel(sel_startoff); set_spi_table_sck(clock_startoff); - set_spi_table_mosi(mosi_startoff, txdata); + // set_spi_table_mosi(mosi_startoff, txdata); for (size_t i = 0; i < spi_table_type_size; i++) {