[update] spi of dev tool

This commit is contained in:
Roy
2022-05-13 10:20:28 +08:00
parent cc8ac71bda
commit 33ea52104f
@@ -143,10 +143,10 @@ static void dev_tool_spi(uint8_t *ins_buf)
pin_set(E_PIN_ADCCS, 1);
} else if (chip_sel == DT_CHIP_DAC) {
pin_set(E_PIN_ADCCS, 0);
pin_set(E_PIN_DACCS, 0);
memcpy(tx, &p[7], txlen);
spi1_write(rx, tx, txlen);
pin_set(E_PIN_ADCCS, 1);
pin_set(E_PIN_DACCS, 1);
} else if (chip_sel == DT_CHIP_MEM) {
pin_set(E_PIN_MEMCS, 0);