summaryrefslogtreecommitdiffstats
path: root/usb/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb/usb.c')
-rw-r--r--usb/usb.c3
1 files changed, 3 insertions, 0 deletions
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 <reg/usbotg.h>
#include <stddef.h>
+#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);
}