repo.or.cz
/
ExpressLRS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Double MSP (TLM and MAVLink) throughput for Gemini hardware (#3037)
[ExpressLRS.git]
/
src
/
lib
/
BUTTON
/
devButton.h
blob
d81a22d63e5a4c93b1da6c154033e66a6c1b864e
1
#pragma once
2
3
#include
"device.h"
4
#include
"common.h"
5
6
typedef
void
(*
ButtonAction_fn
)();
7
8
extern
device_t Button_device
;
9
10
#include <list>
11
#include <map>
12
13
typedef
struct
action
{
14
uint8_t
button
;
15
bool
longPress
;
16
uint8_t
count
;
17
action_e action
;
18
}
action_t
;
19
20
void
registerButtonFunction
(
action_e action
,
ButtonAction_fn function
);
21
size_t
button_GetActionCnt
();