Skip to content

zephyr: pwm: Implement wrapper #29

Description

@kurtjd

What

Implement and upstream a safe, idiomatic Rust wrapper over the raw Rust bindings to the PWM API. See PoC implementation as a start.

Why

The thermal-service relies on fans, typically PWM-controlled fans. To make use of Zephyr's PWM drivers by the thermal-service, they must be wrapped in a safe Rust API.

Out of Scope

  • The Zephyr PWM API also provides an input capture interface, though this is not needed by the thermal-service, so it does not need to be included for the initial PR (though down the line it's always good to support it for completeness sake).
  • This should NOT include an embedded-fan implementation. Typically that is implemented at the application level because a fan is a bit of a higher level construct and Zephyr doesn't have "fan" drivers really.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions