mirror of
https://github.com/pelgraine/Meck.git
synced 2026-07-05 17:21:22 +02:00
19 lines
413 B
C
19 lines
413 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Platform hook for the HYN touch stack.
|
|
// Returns 1 if handled, 0 if the caller should fall back to a normal GPIO,
|
|
// or -1 if the GPIO is virtual but no handler is available.
|
|
int hyn_platform_gpio_set_value(uint32_t gpio_id, int value);
|
|
int hyn_platform_gpio_get_value(uint32_t gpio_id, int *out_value);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|