Lines Matching defs:button
102 int button = 0;
106 /* If button is not found we take default */
119 button = 1;
121 button = 0;
125 return button;
128 * This command returns the status of the user button on
130 * Returns - 1 if button is held down
131 * 0 if button is not held down
136 int button = 0;
137 button = get_button_state("button_dfu0", BOARD_DFU_BUTTON_GPIO);
138 button |= get_button_state("button_dfu1", BOARD_DFU_BUTTON_GPIO);
139 return button;
144 "Return the status of the DFU button",