From b7688f3abe38b253a9b6e90b931da6d91e38f382 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 30 Jan 2013 01:52:38 -0300 Subject: [PATCH] ubb-la/ubb-la.c: add more section titles --- ubb-la/ubb-la.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ubb-la/ubb-la.c b/ubb-la/ubb-la.c index 22b9e57..ebeb3f7 100644 --- a/ubb-la/ubb-la.c +++ b/ubb-la/ubb-la.c @@ -229,6 +229,9 @@ static void xfers(unsigned long *bufs, int n_bufs, int nibbles, } +/* ----- ASCII output ------------------------------------------------------ */ + + static void print_samples(FILE *file, uint8_t *buf, int skip, int nibbles) { uint8_t v, last = 0xff; @@ -260,6 +263,9 @@ static void print_samples(FILE *file, uint8_t *buf, int skip, int nibbles) } +/* ----- Capture ----------------------------------------------------------- */ + + static int do_buf(int nibbles, uint32_t trigger, uint32_t mask) { uint8_t *buf = physmem_malloc(4096);