GPIO 초기화 POWER_HOLD(P0.8) 중복 설정 제거
- main.c: power_hold_init()에서 전원버튼(P0.8) 설정 후 gpio_init()에서 중복 설정 - gpio_init()에서 중복 설정 부분 제거
This commit is contained in:
@@ -340,8 +340,6 @@ static void power_control_handler(on_off_cont_t device_power_st)
|
|||||||
static void gpio_init(void)
|
static void gpio_init(void)
|
||||||
{
|
{
|
||||||
nrf_gpio_cfg_input(POWER_BUTTON, NRF_GPIO_PIN_NOPULL);
|
nrf_gpio_cfg_input(POWER_BUTTON, NRF_GPIO_PIN_NOPULL);
|
||||||
nrf_gpio_cfg_output(POWER_HOLD);
|
|
||||||
nrf_gpio_pin_set(POWER_HOLD);
|
|
||||||
|
|
||||||
DBG_PRINTF("[GPIO] OK (BTN=%d)\r\n", nrf_gpio_pin_read(POWER_BUTTON));
|
DBG_PRINTF("[GPIO] OK (BTN=%d)\r\n", nrf_gpio_pin_read(POWER_BUTTON));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user