summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/stm32f4xx_it.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-20 11:55:10 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-20 11:55:10 +0000
commit50912e7f5dc579fd2917537046793dfa30decadf (patch)
tree541d6f7531d9d75e168fc914f226d15b4c7faf04 /stmhal/stm32f4xx_it.c
parent640e0b221e972f9a2da2d870bf3fc5a93c18f0ec (diff)
downloadmicropython-50912e7f5dc579fd2917537046793dfa30decadf.tar.gz
micropython-50912e7f5dc579fd2917537046793dfa30decadf.zip
py, unix, stmhal: Allow to compile with -Wshadow.
See issue #699.
Diffstat (limited to 'stmhal/stm32f4xx_it.c')
-rw-r--r--stmhal/stm32f4xx_it.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stmhal/stm32f4xx_it.c b/stmhal/stm32f4xx_it.c
index 17ca21f636..e54318e70d 100644
--- a/stmhal/stm32f4xx_it.c
+++ b/stmhal/stm32f4xx_it.c
@@ -77,7 +77,7 @@
#include "storage.h"
extern void __fatal_error(const char*);
-extern PCD_HandleTypeDef hpcd;
+extern PCD_HandleTypeDef pcd_handle;
/******************************************************************************/
/* Cortex-M4 Processor Exceptions Handlers */
@@ -205,7 +205,7 @@ void SysTick_Handler(void) {
#if defined(OTG_XX_IRQHandler)
void OTG_XX_IRQHandler(void) {
- HAL_PCD_IRQHandler(&hpcd);
+ HAL_PCD_IRQHandler(&pcd_handle);
}
#endif
@@ -217,7 +217,7 @@ void OTG_XX_IRQHandler(void) {
#if defined(OTG_XX_WKUP_IRQHandler)
void OTG_XX_WKUP_IRQHandler(void) {
- if ((&hpcd)->Init.low_power_enable) {
+ if ((&pcd_handle)->Init.low_power_enable) {
/* Reset SLEEPDEEP bit of Cortex System Control Register */
SCB->SCR &= (uint32_t)~((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk));
@@ -244,7 +244,7 @@ void OTG_XX_WKUP_IRQHandler(void) {
{}
/* ungate PHY clock */
- __HAL_PCD_UNGATE_PHYCLOCK((&hpcd));
+ __HAL_PCD_UNGATE_PHYCLOCK((&pcd_handle));
}
#ifdef USE_USB_FS
/* Clear EXTI pending Bit*/