add usbd edpt open

- RTT mode is blocking to prevent log lost
- Improve logging message
This commit is contained in:
hathach
2020-04-26 14:51:44 +07:00
parent f1ecda392f
commit 017c95037f
12 changed files with 62 additions and 25 deletions

View File

@@ -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