* wifi wip * renamed project to Tactility * renamed code files and defines * changed prefixes to tt_ * removed wifi wip code
13 lines
354 B
C
13 lines
354 B
C
#include "check.h"
|
|
#include "touch.h"
|
|
|
|
TouchDevice _Nonnull* tt_touch_alloc(TouchDriver _Nonnull* driver) {
|
|
TouchDevice _Nonnull* touch = malloc(sizeof(TouchDevice));
|
|
bool success = driver->create_touch_device(
|
|
&(touch->io_handle),
|
|
&(touch->touch_handle)
|
|
);
|
|
furi_check(success, "touch driver failed");
|
|
return touch;
|
|
}
|