openocd/src
Tomas Vanek 01030fb893 drivers/cmsis-dap: tidy up buffer access
Each one of CMSIS-DAP command handlers was responsible for setting
HID report number, which in case of USB bulk transport was not used
at all. The command had to be filled with 1 byte offset whereas
the response was read without an offset.

Introduce 'command' and 'response' pointers into struct cmsis_dap.
Use them for filling the command and read the response respectively.
CMSIS-DAP command parameter are now at positions as documented in
https://arm-software.github.io/CMSIS_5/DAP/html/group__DAP__Commands__gr.html
Adjust buffer allocation for HID and USB bulk transports.

While on it, use h_u32_to_le() and h_u16_to_le() instead of per-byte
writes.

Change-Id: Ib0808d6826ba0e254c1007ace8b743405536332a
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/6120
Reviewed-by: Adrian M Negreanu <adrian.negreanu@nxp.com>
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
2021-04-10 20:54:43 +01:00
..
flash flash/stm32l4x: probe tzen and rdp values 2021-03-24 17:18:29 +00:00
helper jimtcl: add temporary workaround for memory leak in jimtcl 0.80 2021-04-05 23:24:30 +01:00
jtag drivers/cmsis-dap: tidy up buffer access 2021-04-10 20:54:43 +01:00
pld openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
rtos rtos: Remove typedef'd struct 2021-03-10 21:29:52 +00:00
rtt openocd: fix doxygen parameters of functions 2021-01-13 11:33:53 +00:00
server telnet: support end and home keys 2021-03-19 21:58:59 +00:00
svf openocd: fix command's usage string 2020-09-05 17:13:10 +01:00
target target/arc: refactor ARC register numbers defines 2021-03-19 22:01:00 +00:00
transport jtag: remove minidriver code and minidriver-dummy 2021-03-19 21:56:06 +00:00
xsvf openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
Makefile.am build: Fix out-of-tree with --disable-dependency-tracking configure flag 2021-04-05 23:24:14 +01:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c ioutil: drop the code, deprecated in v0.10.0 2021-03-19 21:55:23 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00