Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
button.h File Reference
#include "../common.h"

Go to the source code of this file.

Macros

#define BUTTON_SHORT_CLICK_MSEC   500
 
#define BUTTON_LONG_CLICK_MSEC   2000
 

Typedefs

typedef void(* button_click_handler_t) (button_click_t click)
 Button click handler type.
 

Enumerations

enum  button_click_t { BUTTON_CLICK_SHORT = 0 , BUTTON_CLICK_LONG }
 Detected button click type. More...
 

Functions

int button_init (void)
 Initialize the button module and its GPIO ISR.
 
void button_reg_click_handler (button_click_handler_t click_handler)
 Register a click handler.