tock icon indicating copy to clipboard operation
tock copied to clipboard

Allow custom implementations of DebugWriter

Open ZhekaS opened this issue 1 year ago • 0 comments

Pull Request Overview

Fixes #4302

Add a trait for debug writer, so the downstream code can implement it's own, not depending on UART backend.

Testing Strategy

Tested on QEMU and local simulated RiscV platform with both UART based and non-UART implentations. Tested debug buffer overflow on buffered implementation

TODO or Help Wanted

Would be nice to test with some implementation using console_ordered as it has some "intrusive" calls to the debug api

Documentation Updated

Inline documentation added in debug.rs

Formatting

  • [x] Ran make prepush.

ZhekaS avatar Mar 25 '25 17:03 ZhekaS