Apply #elif suggestions from code review
Co-authored-by: Pete Johanson <peter@peterjohanson.com>
This commit is contained in:
parent
b0462e54b6
commit
1d928128bd
1 changed files with 3 additions and 6 deletions
|
@ -21,19 +21,16 @@ static int pinmux_mikoto_init(const struct device *port) {
|
||||||
gpio_pin_configure(p0, 26, GPIO_OUTPUT);
|
gpio_pin_configure(p0, 26, GPIO_OUTPUT);
|
||||||
gpio_pin_set(p0, 26, 0);
|
gpio_pin_set(p0, 26, 0);
|
||||||
gpio_pin_configure(p1, 15, GPIO_INPUT);
|
gpio_pin_configure(p1, 15, GPIO_INPUT);
|
||||||
#endif
|
#elif CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_250MA
|
||||||
#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_250MA
|
|
||||||
gpio_pin_configure(p0, 26, GPIO_INPUT);
|
gpio_pin_configure(p0, 26, GPIO_INPUT);
|
||||||
gpio_pin_configure(p1, 15, GPIO_OUTPUT);
|
gpio_pin_configure(p1, 15, GPIO_OUTPUT);
|
||||||
gpio_pin_set(p1, 15, 0);
|
gpio_pin_set(p1, 15, 0);
|
||||||
#endif
|
#elif CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_350MA
|
||||||
#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_350MA
|
|
||||||
gpio_pin_configure(p0, 26, GPIO_OUTPUT);
|
gpio_pin_configure(p0, 26, GPIO_OUTPUT);
|
||||||
gpio_pin_set(p0, 26, 0);
|
gpio_pin_set(p0, 26, 0);
|
||||||
gpio_pin_configure(p1, 15, GPIO_OUTPUT);
|
gpio_pin_configure(p1, 15, GPIO_OUTPUT);
|
||||||
gpio_pin_set(p1, 15, 0);
|
gpio_pin_set(p1, 15, 0);
|
||||||
#endif
|
#elif CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_NONE
|
||||||
#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_NONE
|
|
||||||
gpio_pin_configure(p0, 26, GPIO_INPUT);
|
gpio_pin_configure(p0, 26, GPIO_INPUT);
|
||||||
gpio_pin_configure(p1, 15, GPIO_INPUT);
|
gpio_pin_configure(p1, 15, GPIO_INPUT);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue