Init
This commit is contained in:
commit
628272f753
|
|
@ -0,0 +1,25 @@
|
||||||
|
//
|
||||||
|
// Created by xemon on 17.11.22.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef UVEOS_ON_NATION_USERBUTTONSINTERFACE_H
|
||||||
|
#define UVEOS_ON_NATION_USERBUTTONSINTERFACE_H
|
||||||
|
|
||||||
|
#include "UserInputButtonEvent.h"
|
||||||
|
#include "stdbool.h"
|
||||||
|
|
||||||
|
typedef bool (*userButtonsNextEventCall)(void *env, tUserInputButtonEvent *event, uint32_t timeout);
|
||||||
|
|
||||||
|
typedef bool (*userButtonsCall)(void *env);
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
void *env;
|
||||||
|
userButtonsNextEventCall getNextEvent;
|
||||||
|
userButtonsCall clear;
|
||||||
|
} tUserButtonsInterface;
|
||||||
|
|
||||||
|
#define UserButtons_GetNext(ENV, EVENT, TIMEOUT) (ENV)->getNextEvent((ENV)->env,EVENT,TIMEOUT)
|
||||||
|
#define UserButtons_Clear(ENV) (ENV)->clear((ENV)->env)
|
||||||
|
|
||||||
|
|
||||||
|
#endif //UVEOS_ON_NATION_USERBUTTONSINTERFACE_H
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
//
|
||||||
|
// Created by xemon on 17.11.22.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"dep": [
|
||||||
|
{
|
||||||
|
"type": "git",
|
||||||
|
"provider": "Smart_Components_Aurus",
|
||||||
|
"repo": "UserInputEvent"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"cmake": {
|
||||||
|
"inc_dirs": [
|
||||||
|
"Inc"
|
||||||
|
],
|
||||||
|
"srcs": [
|
||||||
|
"Src/**.c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue