26 #define RC_BTN_PIN_PAUSE 2,5 //gpio2.5 P8.9 27 #define RC_BTN_PIN_MODE 2,4 //gpio2.4 P8.10 29 #define RC_BTN_STATE_PRESSED 1 30 #define RC_BTN_STATE_RELEASED 0 32 #define RC_BTN_POLARITY_NORM_HIGH 1 33 #define RC_BTN_POLARITY_NORM_LOW 0 35 #define RC_BTN_DEBOUNCE_DEFAULT_US 2000 51 int rc_button_init(
int chip,
int pin,
char polarity,
int debounce_us);
110 #endif // RC_BUTTON_H