Update 'USB config & command protocol'

Triss 2021-08-01 02:15:45 +00:00
parent c899c9e5f1
commit b3e4368f70
1 changed files with 3 additions and 1 deletions

@ -178,10 +178,12 @@ additional peripheral ops
* Scan types:
* JTAG: 0
* SWD: 1
* (SBW: 2)
Commands:
* `0x33`: Get status: no argument bytes, one result byte
* `0x0x`: scan busy (type: x, eg. 0x00 = JTAG busy, 0x01 = SWD busy)
* `0x0x`: scan busy (type: `x`, eg. 0x00 = JTAG busy, 0x01 = SWD busy, `x` < 0x7f)
* `0x7f`: idle
* `0b1xxxxxxx`: scan finished, `0bxxxxxxx` matches found
* `0x34`: Get scan result (only if status is finished): no argument bytes, 8\*x (JTAG) or 6\*x (SWD) result bytes