diff options
| author | hathach <[email protected]> | 2020-04-26 14:51:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-26 14:51:44 +0700 |
| commit | 017c95037f3173455fa09efae6093d56fd3f3d1a (patch) | |
| tree | 37e5eb03f99c95ca9ebdb69c0bf6c8b263342492 /src/tusb.c | |
| parent | f1ecda392ffcc0c114269c3b6c318a2d0a50e2f5 (diff) | |
add usbd edpt open
- RTT mode is blocking to prevent log lost
- Improve logging message
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tusb.c b/src/tusb.c index 8f234455f..1bc134dba 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -78,9 +78,11 @@ static void dump_str_line(uint8_t const* buf, uint16_t count) } } -// size : item size in bytes -// count : number of item -// print offet or not (handfy for dumping large memory) +/* Print out memory contents + * - size : item size in bytes + * - count : number of item + * - indent: prefix spaces on every line + */ void tu_print_mem(void const *buf, uint16_t count, uint8_t indent) { uint8_t const size = 1; // fixed 1 byte for now |
