Lines Matching defs:button
372 /* Service button */
378 int button = 0;
382 /* If button is not found we take default */
396 button = 1;
398 button = 0;
402 return button;
406 * This command returns the status of the user button on
408 * Returns - 1 if button is held down
409 * 0 if button is not held down
414 int button = 0;
416 button = get_button_state("button_usr1", BOARD_DEFAULT_BUTTON_GPIO);
419 printf("Button state: %u\n", button);
421 return button;
426 "Return the status of user button",