Skip to content

Conversation

@dobrowolski-lukasz
Copy link
Contributor

@dobrowolski-lukasz dobrowolski-lukasz commented Nov 27, 2025

Add a simple PIO program for outputting a square wave of given frequency.
Switch to pio_programs::clock_divider::calculate_pio_clock_divider_value for clock divider calculation for I2S PIO programs.
Change PioBatch to enable user to start two PIO based drivers at the same time.

PioBatch could be further extended so that the drivers could register callbacks to be executed after state machine is started. Current code does not need it so I haven't added this.

I'm not sure with some of names I've used. If anybody has better ideas do let me know.

Test: I've run pio_i2s and pio_clk examples and checked all outputs with an oscilloscope.

@dobrowolski-lukasz dobrowolski-lukasz changed the title embassy-rp: PioClk embassy-rp: Add PioClk [and mclk to I2S] Dec 2, 2025
@dobrowolski-lukasz dobrowolski-lukasz force-pushed the pioclk branch 3 times, most recently from 3756345 to 2f0242b Compare January 8, 2026 13:13
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