lib/stm32/f2: Coding-style fixes.
This commit is contained in:
@@ -132,15 +132,15 @@ void exti_select_source(u32 exti, u32 gpioport)
|
||||
/* Ensure that only valid EXTI lines are used. */
|
||||
if (exti < EXTI4) {
|
||||
SYSCFG_EXTICR1 &= ~(0x000F << shift);
|
||||
SYSCFG_EXTICR1 |= (~bits << shift);
|
||||
SYSCFG_EXTICR1 |= (~bits << shift);
|
||||
} else if (exti < EXTI8) {
|
||||
SYSCFG_EXTICR2 &= ~(0x000F << shift);
|
||||
SYSCFG_EXTICR2 |= (~bits << shift);
|
||||
SYSCFG_EXTICR2 |= (~bits << shift);
|
||||
} else if (exti < EXTI12) {
|
||||
SYSCFG_EXTICR3 &= ~(0x000F << shift);
|
||||
SYSCFG_EXTICR3 |= (~bits << shift);
|
||||
SYSCFG_EXTICR3 |= (~bits << shift);
|
||||
} else if (exti < EXTI16) {
|
||||
SYSCFG_EXTICR4 &= ~(0x000F << shift);
|
||||
SYSCFG_EXTICR4 |= (~bits << shift);
|
||||
SYSCFG_EXTICR4 |= (~bits << shift);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user