mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
machine/nrf: implement auto-reset over USB for nrf52840
This commit is contained in:
@@ -384,12 +384,6 @@ func cdcSetup(setup usbSetup) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func checkShouldReset() {
|
||||
if usbLineInfo.dwDTERate == 1200 && usbLineInfo.lineState&usb_CDC_LINESTATE_DTR == 0 {
|
||||
// TODO: reset here
|
||||
}
|
||||
}
|
||||
|
||||
func sendUSBPacket(ep uint32, data []byte) {
|
||||
count := len(data)
|
||||
copy(udd_ep_in_cache_buffer[ep][:], data)
|
||||
|
||||
Reference in New Issue
Block a user