This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_button_wait_for_event

Function Documentation

int rc_button_wait_for_event(int chip, int pin, int press_or_release)

blocking function call, returns when press or release happens

Parameters
  • chip[in] The gpio chip

  • pin[in] The gpio pin for that chip

  • press_or_release[in] RC_BTN_STATE_PRESSED or RC_BTN_STATE_RELEASED

Returns

0 on successful event, -1 on error