@@ -55,7 +55,9 @@ void app_gpio_init(void)
5555 (GPIO_DIR_IN | GPIO_INT | GPIO_INT_EDGE |
5656 GPIO_PUD_PULL_UP |
5757 GPIO_INT_DEBOUNCE | GPIO_INT_ACTIVE_LOW ));
58- gpio_init_callback (& button_cb [0 ], button_pressed , BIT (DT_ALIAS_SW0_GPIOS_PIN ));
58+ gpio_init_callback (& button_cb [0 ],
59+ button_pressed ,
60+ BIT (DT_ALIAS_SW0_GPIOS_PIN ));
5961 gpio_add_callback (button_device [0 ], & button_cb [0 ]);
6062 gpio_pin_enable_callback (button_device [0 ], DT_ALIAS_SW0_GPIOS_PIN );
6163
@@ -64,7 +66,9 @@ void app_gpio_init(void)
6466 (GPIO_DIR_IN | GPIO_INT | GPIO_INT_EDGE |
6567 GPIO_PUD_PULL_UP |
6668 GPIO_INT_DEBOUNCE | GPIO_INT_ACTIVE_LOW ));
67- gpio_init_callback (& button_cb [1 ], button_pressed , BIT (DT_ALIAS_SW1_GPIOS_PIN ));
69+ gpio_init_callback (& button_cb [1 ],
70+ button_pressed ,
71+ BIT (DT_ALIAS_SW1_GPIOS_PIN ));
6872 gpio_add_callback (button_device [1 ], & button_cb [1 ]);
6973 gpio_pin_enable_callback (button_device [1 ], DT_ALIAS_SW1_GPIOS_PIN );
7074
@@ -73,7 +77,9 @@ void app_gpio_init(void)
7377 (GPIO_DIR_IN | GPIO_INT | GPIO_INT_EDGE |
7478 GPIO_PUD_PULL_UP |
7579 GPIO_INT_DEBOUNCE | GPIO_INT_ACTIVE_LOW ));
76- gpio_init_callback (& button_cb [2 ], button_pressed , BIT (DT_ALIAS_SW2_GPIOS_PIN ));
80+ gpio_init_callback (& button_cb [2 ],
81+ button_pressed ,
82+ BIT (DT_ALIAS_SW2_GPIOS_PIN ));
7783 gpio_add_callback (button_device [2 ], & button_cb [2 ]);
7884 gpio_pin_enable_callback (button_device [2 ], DT_ALIAS_SW2_GPIOS_PIN );
7985
@@ -82,7 +88,9 @@ void app_gpio_init(void)
8288 (GPIO_DIR_IN | GPIO_INT | GPIO_INT_EDGE |
8389 GPIO_PUD_PULL_UP |
8490 GPIO_INT_DEBOUNCE | GPIO_INT_ACTIVE_LOW ));
85- gpio_init_callback (& button_cb [3 ], button_pressed , BIT (DT_ALIAS_SW3_GPIOS_PIN ));
91+ gpio_init_callback (& button_cb [3 ],
92+ button_pressed ,
93+ BIT (DT_ALIAS_SW3_GPIOS_PIN ));
8694 gpio_add_callback (button_device [3 ], & button_cb [3 ]);
8795 gpio_pin_enable_callback (button_device [3 ], DT_ALIAS_SW3_GPIOS_PIN );
8896}
0 commit comments