machine/nrf: implement auto-reset over USB for nrf52840

This commit is contained in:
BCG
2020-02-22 09:46:33 -05:00
committed by GitHub
parent bf57ae01fa
commit 0655086048
5 changed files with 56 additions and 8 deletions
-6
View File
@@ -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)