Lines Matching refs:rc
122 int rc; in io_detect_pin() local
130 rc = gpio_pin_configure_dt(&button0, GPIO_INPUT); in io_detect_pin()
131 __ASSERT(rc == 0, "Failed to initialize boot detect pin.\n"); in io_detect_pin()
133 rc = gpio_pin_get_dt(&button0); in io_detect_pin()
134 pin_active = rc; in io_detect_pin()
136 __ASSERT(rc >= 0, "Failed to read boot detect pin.\n"); in io_detect_pin()
150 rc = gpio_pin_get_dt(&button0); in io_detect_pin()
151 pin_active = rc; in io_detect_pin()
152 __ASSERT(rc >= 0, "Failed to read boot detect pin.\n"); in io_detect_pin()
180 int rc; in io_detect_pin_reset() local
182 rc = hwinfo_get_reset_cause(&reset_cause); in io_detect_pin_reset()
184 if (rc == 0 && reset_cause == RESET_PIN) { in io_detect_pin_reset()