board/servo_v4p1/chg_control.c: Format with clang-format
BRANCH=none
TEST=none
@@ -55,8 +55,10 @@ void chg_attach_cc_rds(bool en)
* Configure USB_CHG_CC1_MCU and USB_CHG_CC2_MCU as
* ANALOG input
*/
- STM32_GPIO_MODER(GPIO_A) = (STM32_GPIO_MODER(GPIO_A)
- | (3 << (2*2)) | /* PA2 in ANALOG mode */
+ STM32_GPIO_MODER(GPIO_A) =
+ (STM32_GPIO_MODER(GPIO_A) | (3 << (2 * 2)) | /* PA2 in
+ ANALOG
+ mode */
(3 << (2 * 4))); /* PA4 in ANALOG mode */
} else {
/*
@@ -71,9 +73,11 @@ void chg_attach_cc_rds(bool en)
gpio_set_level(GPIO_USB_CHG_CC2_MCU, 1);
/* Disable Analog mode and Enable GPO */
- STM32_GPIO_MODER(GPIO_A) = (STM32_GPIO_MODER(GPIO_A)
- & ~(3 << (2*2) | /* PA2 disable ADC */
- 3 << (2*4))) /* PA4 disable ADC */
+ STM32_GPIO_MODER(GPIO_A) = (STM32_GPIO_MODER(GPIO_A) &
+ ~(3 << (2 * 2) | /* PA2 disable ADC
+ */
+ 3 << (2 * 4))) /* PA4 disable ADC
+ */
| (1 << (2 * 2) | /* Set as GPO */
1 << (2 * 4)); /* Set as GPO */
}
