Dario Nieuwenhuis
d41eeeae79
Remove Peripheral trait, rename PeripheralRef->Peri.
2025-03-27 15:18:06 +01:00
eden barby
24941212e8
Added access to the byte swap flag for RP2*** chips for the PIO state machine DMA calls.
2025-03-01 17:23:04 +10:00
Dario Nieuwenhuis
52dfefb632
rp/pio: update pio-rs crate, reexport it so users don't get version mismatches.
2025-02-18 18:14:57 +01:00
Dario Nieuwenhuis
e3edd671b6
rp/pio: move instructions to methods of the SM.
2025-02-18 18:14:35 +01:00
Steve Work
3b74732f40
Rename readers with get_, per CBJamo review. Tweak use_program docstring.
...
The tweak arranges that "grep sideset" finds use_program() when grokking source - this spelling is used
elsewhere, as in PinConfig for example, and I managed to miss use_program.
2025-02-07 09:26:34 -08:00
Steve Work
9acbfc9c22
Add PIO functions.
...
Add some (I think) needed functions:
ConfigPins::set_sideset_pins (the other pin types are covered, why not this one?)
Several runtime StateMachine manipulations:
- addr()
- tx_threshold()
- set_tx_threshold
- rx_threshold()
- set_rx_threshold()
- set_thresholds() - both at once, same value
2025-02-06 17:46:04 -08:00
Pedro Ferreira
933e888ed0
RP235x: support new FIFO options, set IE, OD on PIO pins.
2025-01-15 01:56:37 +01:00
Dario Nieuwenhuis
209183ebea
Fixes for new PACs.
2025-01-06 13:22:44 +01:00
Dario Nieuwenhuis
aaad8450e9
Use inline const for initializing arrays. ( #3567 )
2024-11-24 20:58:48 +01:00
Dario Nieuwenhuis
3225848bd2
rp/pio: ensure PADS IE=1 which is not the default in rp235x.
...
Fixes #3476
2024-10-31 21:26:40 +01:00
Caleb Jamison
d1508cc49c
oops
2024-09-16 13:07:16 -04:00
Caleb Jamison
8b34c94ef3
Improve error message when pin groups are not allowed
2024-09-16 13:02:35 -04:00
Caleb Jamison
6e0c3e25fd
Only check ping groups that have count >0
2024-09-16 12:58:23 -04:00
Caleb Jamison
9cfde66446
Move pin isolation config to make_pio_pin
2024-09-16 12:47:34 -04:00
Caleb Jamison
48fd0550d1
Review fixes
...
Don't overflow on subtract
Replace giant match with for loop
dedupe register write
2024-09-16 12:41:12 -04:00
Caleb Jamison
55c3da5a4f
Properly drop pins >30
2024-09-15 20:48:54 -04:00
Caleb Jamison
ed6cbc7a3a
Fix upper bound of case where pins should be <=31
2024-09-15 20:09:18 -04:00
Caleb Jamison
e359b24121
remove debug print
2024-09-12 11:50:36 -04:00
Caleb Jamison
823a82adb7
Fixup formatting to work with log
2024-09-12 11:43:15 -04:00
Caleb Jamison
eeda57a424
rp2350 pio pin fixes
...
Disable pad isolation on any used pin.
Use GPIOBASE and offset pin bases if all pins are > 16, panic if some
pins are < 16 and some are > 31
2024-09-12 11:37:17 -04:00
Caleb Jamison
778241fd71
Fix CI, rename private feature, address comments from dirbaio.
2024-08-12 04:32:31 -04:00
Caleb Jamison
b185e02a42
Initial rp235x support
...
Examples have been run, but there is not yet a test suite.
2024-08-08 21:35:21 -04:00
Jan Niehusmann
3f8736e872
Add a comment to the pio rx fifo pull function
2024-04-21 21:24:15 +00:00
Dario Nieuwenhuis
a84b33995e
rp: remove mod sealed.
2024-04-05 00:48:46 +02:00
Rafael Bachmann
e139a4e076
fix: CI
2024-03-25 15:09:41 +01:00
Rafael Bachmann
255ed29853
fix minor clippy lints in embassy_rp
2024-03-18 23:28:58 +01:00
Ulf Lilleengen
f4b77c967f
docs: document all embassy-rp public apis
...
Enable missing doc warnings.
2023-12-19 14:19:46 +01:00
Ulf Lilleengen
e45e3e76b5
docs: embassy-rp rustdoc and refactoring
2023-12-19 10:56:22 +01:00