Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspi(pwm): add support for sysfs and fix pi-blaster #1048

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

gen2thomas
Copy link
Collaborator

@gen2thomas gen2thomas commented Dec 9, 2023

Solved issues and/or description of the change

solve/fix #1032 , additionally:

  • switch jetson nano to use default sysfs-PWM adaptor
  • use "inversed" as default value for inverted polarity since newer Kernels use this value instead of "inverted"
  • introduce validation of calculated duty cycle (rate)

Manual test

  • OS and Version (Win/Mac/Linux): Linux (raspios, bookworm)
  • Adaptor(s) and/or driver(s): raspi rev0 model B with
    • sysfs-PWM & Servo/Motor (using "pwm0")
    • pi-blaster & Servo/Motor (using header pin 7 = GPIO4)

Checklist

  • The PR's target branch is 'hybridgroup:dev'
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (e.g. by run make test)
  • No linter errors exist locally (e.g. by run make fmt_check)
  • I have performed a self-review of my own code

If this is a new driver or adaptor:

  • I have adjusted the corresponding README.md for usage of pi-blaster
  • I have added an example to see how to setup and use it
  • I have checked or build at least my new example (e.g. by run make examples_check)

@gen2thomas gen2thomas force-pushed the feature/raspi_sysfs_pwm branch 5 times, most recently from f047ada to d4c14c6 Compare December 10, 2023 18:43
@gen2thomas gen2thomas marked this pull request as ready for review December 11, 2023 18:08
@gen2thomas gen2thomas merged commit 915d0c8 into hybridgroup:dev Dec 11, 2023
5 checks passed
@gen2thomas gen2thomas deleted the feature/raspi_sysfs_pwm branch December 11, 2023 18:09
@gen2thomas gen2thomas mentioned this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant