diff options
author | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-18 17:27:00 +0000 |
---|---|---|
committer | kc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-18 17:27:00 +0000 |
commit | 39e9278ffc173628c7626802ed76c5f156c0a18c (patch) | |
tree | f4e0b52aca2c57be2ebc041cf704954174d4c4ac /src | |
parent | 9b4295b059493ec1d4902f9a59f4a98594ec14f9 (diff) | |
download | openocd_libswd-39e9278ffc173628c7626802ed76c5f156c0a18c.tar.gz openocd_libswd-39e9278ffc173628c7626802ed76c5f156c0a18c.tar.bz2 openocd_libswd-39e9278ffc173628c7626802ed76c5f156c0a18c.tar.xz openocd_libswd-39e9278ffc173628c7626802ed76c5f156c0a18c.zip |
Add jtag_queue_command() by Michael Bruck <mbruck@digenius.de>
git-svn-id: svn://svn.berlios.de/openocd/trunk@1815 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/jtag.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index f6ddd8df..f801fb7b 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -439,6 +439,21 @@ jtag_command_t** jtag_get_last_command_p(void) return last_comand_pointer; } + +void jtag_queue_command(jtag_command_t * cmd) +{ + jtag_command_t **last_cmd; + + last_cmd = jtag_get_last_command_p(); + + *last_cmd = cmd; + + (*last_cmd)->next = NULL; + + last_comand_pointer = &((*last_cmd)->next); +} + + void* cmd_queue_alloc(size_t size) { cmd_queue_page_t **p_page = &cmd_queue_pages; |