m3dev

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 549275e74aa1bda810a43c34f87032d834b8361c
parent d48f1eba796b10b737a480ec1bde8ef04ec0f609
Author: Brian Swetland <swetland@frotz.net>
Date:   Mon,  3 Aug 2015 13:21:04 -0700

debugger: eol whitespace removal

Diffstat:
Mtools/debugger-core.c | 4++--
Mtools/rswdp.c | 8+++++---
Mtools/usb.c | 4++--
3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/tools/debugger-core.c b/tools/debugger-core.c @@ -307,7 +307,7 @@ static int do_set(int argc, param *argv) { return -1; } variable_set(name, n); - } else { + } else { variable_set(name, argv[1].n); } return 0; @@ -339,7 +339,7 @@ static int parse_number(const char *in, unsigned *out) { if (read_memory_word(base + index, &value)) return -1; *out = value; - return 0; + return 0; } /* handle local $[0..9] and global $... variables */ diff --git a/tools/rswdp.c b/tools/rswdp.c @@ -20,6 +20,8 @@ #include <unistd.h> #include <string.h> +#include <pthread.h> + #include "usb.h" #include <fw/types.h> @@ -87,7 +89,7 @@ static void process_async(u32 *data, unsigned count) { default: return; } - } + } } static int process_reply(struct txn *t, u32 *data, int count) { @@ -144,7 +146,7 @@ static int q_exec(struct txn *t) { t->magic = 0; /* If we are a multiple of 64, and not exactly 4K, - * add padding to ensure the target can detect the end of txn + * add padding to ensure the target can detect the end of txn */ if (((t->txc % 16) == 0) && (t->txc != MAXWORDS)) t->tx[t->txc++] = RSWD_MSG(CMD_NULL, 0, 0); @@ -632,7 +634,7 @@ int swdp_set_clock(unsigned khz) { t.tx[t.txc++] = RSWD_MSG(CMD_SET_CLOCK, 0, khz); return q_exec(&t); } - + int swdp_open(void) { usb = usb_open(0x18d1, 0xdb03, 0); if (usb == 0) { diff --git a/tools/usb.c b/tools/usb.c @@ -59,7 +59,7 @@ usb_handle *usb_open(unsigned vid, unsigned pid, unsigned ifc) { default: goto fail; } - + usb->dev = libusb_open_device_with_vid_pid(usb_ctx, vid, pid); if (usb->dev == NULL) { goto fail; @@ -72,7 +72,7 @@ usb_handle *usb_open(unsigned vid, unsigned pid, unsigned ifc) { fprintf(stderr, "failed to claim interface #%d\n", ifc); goto close_fail; } - + return usb; close_fail: