-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces a new `pinmux_pwm_test` that will run in CI, which tests that PWM appears to be working correctly when it is muxed over PMOD, and that it doesn't work when disabled via Pinmux. This re-uses the loopback testing code from the PWM tests that reads the PWM output via GPIO to determine the duty cycle and period, and use that to verify that PWM operation is as expected. There is some small refactoring to make that possible, including a fix in which the PWM loopback test was accidentally using hardcoded GPIO 0 instead of the specified pin constant (which was also 0, hence no previous problems). Requires an additional jumper cable to FPGAs to pass the test, which can be optionally disabled by the same `PINMUX_CABLE_CONNECTIONS_AVAILABLE` method as for tests where this was previously required.
- Loading branch information
1 parent
1db4deb
commit e7088a6
Showing
3 changed files
with
80 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters