fa4a6e255c
- Added modular device support and devicetree bindings for ILI9341, ILI9488, CST816S, XPT2046, and GPIO button input, updating several board configurations for display/touch/backlight/keyboard/battery. - Added a setting to control deprecated HAL usage (device property + Kconfig).
26 lines
529 B
C
26 lines
529 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include <tactility/drivers/gpio.h>
|
|
|
|
struct ButtonControlConfig {
|
|
struct GpioPinSpec pin_primary;
|
|
// GPIO_PIN_SPEC_NONE selects one-button mode; see the binding description for the
|
|
// resulting short/long press key mapping in each mode.
|
|
struct GpioPinSpec pin_secondary;
|
|
bool active_low;
|
|
uint32_t debounce_ms;
|
|
uint32_t long_press_ms;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|