Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
73f1a491
Commit
73f1a491
authored
Apr 18, 2015
by
Damien George
Browse files
stmhal: Exclude USB HS code when USB HS mode not enabled.
parent
c92c7a69
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/usbd_conf.c
View file @
73f1a491
...
...
@@ -94,6 +94,7 @@ void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd)
HAL_NVIC_EnableIRQ
(
OTG_FS_IRQn
);
}
#if defined(USE_USB_HS)
else
if
(
hpcd
->
Instance
==
USB_OTG_HS
)
{
/* Configure USB FS GPIOs */
...
...
@@ -158,6 +159,7 @@ void HAL_PCD_MspInit(PCD_HandleTypeDef *hpcd)
/* Enable USBHS Interrupt */
HAL_NVIC_EnableIRQ
(
OTG_HS_IRQn
);
}
#endif
}
/**
* @brief DeInitializes the PCD MSP.
...
...
@@ -172,12 +174,14 @@ void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd)
__USB_OTG_FS_CLK_DISABLE
();
__SYSCFG_CLK_DISABLE
();
}
#if defined(USE_USB_HS)
else
if
(
hpcd
->
Instance
==
USB_OTG_HS
)
{
/* Disable USB FS Clocks */
__USB_OTG_HS_CLK_DISABLE
();
__SYSCFG_CLK_DISABLE
();
}
#endif
}
/*******************************************************************************
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment