diff options
Diffstat (limited to 'usb/usb.c')
-rw-r--r-- | usb/usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |