/* Wait for the completion of a page program, erase and random read completion.  */
static void wait_ready(void)
/* Wait for the completion of a page program, erase and random read completion.  */
static void wait_ready(void)
{
	while (gpio_pin_is_low(PIN_NF_RB_IDX)) {
	}
}