From 108faf4ead2643d6ebd0fd238914b09dc4949861 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 26 Mar 2017 21:46:11 +0100 Subject: usb: uart debugging --- usb/usb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usb/usb.c') diff --git a/usb/usb.c b/usb/usb.c index 8b78f3b..a8cbbf8 100644 --- a/usb/usb.c +++ b/usb/usb.c @@ -4,6 +4,7 @@ #include #include +#include "../uart/uart.h" #include "usb.h" #include "bdt.h" #include "endpt0.h" @@ -80,10 +81,12 @@ void usb_isr(void) uint8_t stat = USB0_ISTAT; if (IS_BIT_SET(stat, ISTAT_TOKDNE)) { + uart_puts("tokdne"); i_tokdne(); USB0_ISTAT = BV(ISTAT_TOKDNE); } if (IS_BIT_SET(stat, ISTAT_USBRST)) { + uart_puts("usbrst"); i_usbrst(); USB0_ISTAT = BV(ISTAT_USBRST); } -- cgit v1.2.3-54-g00ecf