niekiran / MasteringMCU

Udemy Mastering Microcontroller Course Repository
392 stars 374 forks source link

stm32f407xx_gpio_driver.c -> GPIO_Init BUG (configure the GPIO port selection in SYSCFG_EXTICR register) #4

Open mrLuci4 opened 4 years ago

mrLuci4 commented 4 years ago

This caught my attention -> line 130 SYSCFG->EXTICR[temp1] = portcode << ( temp2 4); in my opinion it should be SYSCFG->EXTICR[temp1] |= portcode << ( temp2 4);