[update] spi of dev tool
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user