Commit b163207d authored by Christos Gentsos's avatar Christos Gentsos

Master: added slave reset and copy FW commands

parent 5f825dd1
......@@ -175,7 +175,12 @@ int main(void)
i2c_m_sync_ext_cmd_write(&I2C_0, 0x3, (uint8_t *)&checksum, 2);
break;
case 'r':
debug("secondary FW checksum is %u", checksum);
res = i2c_m_sync_ext_cmd_write(&I2C_0, 0x6, send_buf, 1);
debug("resetting slave...");
break;
case 'w':
res = i2c_m_sync_ext_cmd_write(&I2C_0, 0x5, send_buf, 1);
debug("resetting slave to write new FW...");
break;
case 's':
adc_sync_read_channel(&ADC_0, 0, (uint8_t *)&adc_val, 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment