mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
* **Refactor** * GPIO subsystem moved to a descriptor-based model for per-pin ownership and runtime pin management; many platform drivers now acquire/release descriptors. * Device trees and drivers now use GPIO phandle-style pin specifications across all boards and all drivers. * **Behavior** * Device list now encodes per-device status (ok/disabled); boot will skip disabled devices accordingly. * **Deprecation** * Legacy GPIO HAL marked deprecated and replaced with descriptor-based interfaces. * **Chores** * Bindings and platform configs updated to the new GPIO pin-spec format.
25 lines
483 B
C
25 lines
483 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** @deprecated NON-FUNCTIONAL - WILL BE REMOVED SOON */
|
|
typedef unsigned int GpioPin;
|
|
|
|
/** @deprecated NON-FUNCTIONAL - WILL BE REMOVED SOON */
|
|
#define GPIO_NO_PIN -1
|
|
|
|
/** @deprecated NON-FUNCTIONAL - WILL BE REMOVED SOON */
|
|
bool tt_hal_gpio_get_level(GpioPin pin);
|
|
|
|
/** @deprecated NON-FUNCTIONAL - WILL BE REMOVED SOON */
|
|
int tt_hal_gpio_get_pin_count();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|