]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Output/pjrcUSB/arm/usb_dev.c
Initial code for ARM UART output module (mainly for CLI)
[kiibohd-controller.git] / Output / pjrcUSB / arm / usb_dev.c
index b3ac2e0cff4a5a3d5431d8d94c2582fa146b0f11..f4bf2fc9138942deed9518469d57e4a873b0933e 100644 (file)
@@ -669,21 +669,12 @@ void usb_tx(uint32_t endpoint, usb_packet_t *packet)
 }
 
 
-
 void usb_device_reload()
 {
        asm volatile("bkpt");
 }
 
 
-void _reboot_Teensyduino_(void)
-{
-       // TODO: initialize R0 with a code....
-       asm volatile("bkpt");
-}
-
-
-
 void usb_isr(void)
 {
        uint8_t status, stat, t;
@@ -700,7 +691,7 @@ void usb_isr(void)
                        t = usb_reboot_timer;
                        if (t) {
                                usb_reboot_timer = --t;
-                               if (!t) _reboot_Teensyduino_();
+                               if (!t) usb_device_reload();
                        }
 #ifdef CDC_DATA_INTERFACE
                        t = usb_cdc_transmit_flush_timer;