mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 17:35:05 +00:00
* app loading wip * various improvements irq/isr stuff is now working lvgl locking where needed hello world now uses proper mutex for app unlocking etc? * various improvements * cmsis_esp improvements * implement interrupts
13 lines
354 B
C
13 lines
354 B
C
#include "check.h"
|
|
#include "touch.h"
|
|
|
|
TouchDevice _Nonnull* nb_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;
|
|
}
|