fossasia / pslab-firmware

Firmware for PSLab Open Hardware Platform https://pslab.io
Apache License 2.0
1.56k stars 76 forks source link

Add debug messages over serial #158

Closed bessman closed 1 year ago

bessman commented 1 year ago

Add DEBUG_write_u8/u16/u32 functions, which send 1, 2, or 4 bytes over serial if firmware was built with -DENABLE_DEBUG. The functions do nothing otherwise.

Depends on #157.