sw: add initial tests for spi and rgb

These tests are still a work-in-progress, but they form the basis of
what will be the factory test.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2019-05-23 09:51:45 +08:00
parent 0c8f29c7bf
commit 5ff6153b53
14 changed files with 1158 additions and 1116 deletions

View File

@ -16,6 +16,9 @@ void cdc_set_connected(int is_connected)
void _putchar(char character)
{
if (character == '\n')
_putchar('\r');
// Wait for buffer to be empty
while (usb_ep_2_in_respond_read() == EPF_ACK)
;