i2c_puppet-Linux/app/touchpad.h
2021-11-03 19:26:43 +01:00

17 lines
295 B
C

#pragma once
#include <stdbool.h>
#include <sys/types.h>
struct touch_callback
{
void (*func)(int8_t, int8_t);
struct touch_callback *next;
};
void touchpad_gpio_irq(uint gpio, uint32_t events);
void touchpad_add_touch_callback(struct touch_callback *callback);
void touchpad_init(void);