Initial code for ARM UART output module (mainly for CLI)
This commit is contained in:
parent
99d4aaba84
commit
6f563bdc9f
8 changed files with 619 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue