This commit is contained in:
cfif 2024-12-04 13:10:49 +03:00
commit 71c770e271
3 changed files with 46 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
//
// Created by xemon on 17.11.22.
//

17
modular.json Normal file
View File

@ -0,0 +1,17 @@
{
"dep": [
{
"type": "git",
"provider": "NAVIGATOR_UVEOS_NATION_TELIT",
"repo": "UserInputEvent"
}
],
"cmake": {
"inc_dirs": [
"Inc"
],
"srcs": [
"Src/**.c"
]
}
}