From b2f9c4c0c9e9527926ec56700a27f8bbaab104ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 5 Apr 2018 09:52:10 +0200 Subject: [PATCH] [usb] Better comments in usb.cpp Change-Id: I81074c755e2e192a1c82bfabf26ca601a6162bd8 --- ion/src/device/usb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ion/src/device/usb.cpp b/ion/src/device/usb.cpp index 818f9ff28..84022b533 100644 --- a/ion/src/device/usb.cpp +++ b/ion/src/device/usb.cpp @@ -90,7 +90,7 @@ void initOTG() { while (!OTG.GRSTCTL()->getAHBIDL()) { } - /* Core soft reset: Clears the interrupts and many the CSR register bits, + /* Core soft reset: Clears the interrupts and many of the CSR register bits, * resets state machines, flushes the FIFOs and terminates USB transactions.*/ OTG.GRSTCTL()->setCSRST(true); while (OTG.GRSTCTL()->getCSRST()) { @@ -106,8 +106,8 @@ void initOTG() { // Force peripheral only mode OTG.GUSBCFG()->setFDMOD(true); - // Configure the USB turnaround time, depending on the AHB clock speed. - OTG.GUSBCFG()->setTRDT(0x6); // TODO + // Configure the USB turnaround time, depending on the AHB clock speed (96MHz) + OTG.GUSBCFG()->setTRDT(0x6); // Clear the interrupts OTG.GINTSTS()->set(0);