summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-07-03 01:19:02 +0700
committerhathach <[email protected]>2020-07-03 01:19:02 +0700
commita09a86d29931adf801d4293df879ec54164f689d (patch)
treeea6c803399879f1b138f2a981ecfc4664b0d7a37 /src
parent4cec866994f32f729844d0159e14c178f5aa904f (diff)
fix NVIC disable typo
Diffstat (limited to 'src')
-rw-r--r--src/portable/st/synopsys/dcd_synopsys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c
index 50984c830..288b4e50c 100644
--- a/src/portable/st/synopsys/dcd_synopsys.c
+++ b/src/portable/st/synopsys/dcd_synopsys.c
@@ -340,7 +340,7 @@ static bool USB_HS_PHYCInit(void)
usb_hs_phyc->USB_HS_PHYC_PLL = phyc_pll;
// Control the tuning interface of the High Speed PHY
- // Use magic value from ST driver
+ // Use magic value (USB_HS_PHYC_TUNE_VALUE) from ST driver
usb_hs_phyc->USB_HS_PHYC_TUNE |= 0x00000F13U;
// Enable PLL internal PHY
@@ -473,7 +473,7 @@ void dcd_int_enable (uint8_t rhport)
void dcd_int_disable (uint8_t rhport)
{
- NVIC_EnableIRQ(_dcd_rhport[rhport].irqnum);
+ NVIC_DisableIRQ(_dcd_rhport[rhport].irqnum);
}
void dcd_set_address (uint8_t rhport, uint8_t dev_addr)