mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +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.
17 lines
404 B
C
17 lines
404 B
C
#pragma once
|
|
|
|
#include "gpio.h"
|
|
|
|
struct Device;
|
|
|
|
struct GpioDescriptor {
|
|
/** @brief The controller that owns this pin */
|
|
struct Device* controller;
|
|
/** @brief Physical pin number */
|
|
gpio_pin_t pin;
|
|
/** @brief Current owner */
|
|
enum GpioOwnerType owner_type;
|
|
/** @brief Implementation-specific context (e.g. from esp32 controller internally) */
|
|
void* controller_context;
|
|
};
|