Lines Matching +full:sim +full:- +full:gpios
2 * Copyright (c) 2021-2022 Actinius
4 * SPDX-License-Identifier: Apache-2.0
24 const struct gpio_dt_spec sim = in actinius_board_set_sim_select() local
27 if (!gpio_is_ready_dt(&sim)) { in actinius_board_set_sim_select()
28 LOG_ERR("The SIM Select Pin port is not ready"); in actinius_board_set_sim_select()
30 return -ENODEV; in actinius_board_set_sim_select()
33 if (DT_ENUM_IDX(SIM_SELECT_NODE, sim) == 0) { in actinius_board_set_sim_select()
34 (void)gpio_pin_configure_dt(&sim, GPIO_OUTPUT_HIGH); in actinius_board_set_sim_select()
37 (void)gpio_pin_configure_dt(&sim, GPIO_OUTPUT_LOW); in actinius_board_set_sim_select()
38 LOG_INF("External SIM is selected"); in actinius_board_set_sim_select()
49 GPIO_DT_SPEC_GET(CHARGER_ENABLE_NODE, gpios); in actinius_board_set_charger_enable()
53 return -ENODEV; in actinius_board_set_charger_enable()
76 LOG_ERR("Failed to set the SIM Select Pin (error: %d)", result); in actinius_board_init()