aboutsummaryrefslogtreecommitdiff
path: root/tests/rp/src/bin/adc.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-23/+38
|
* rustfmt againCaleb Jamison2025-02-181-2/+1
|
* rustfmt fixupCaleb Jamison2025-02-181-2/+1
|
* Inital rp23 ci testsCaleb Jamison2025-02-181-35/+30
| | | | | | | | | | | | | | | | | | | Some tests need more work. * The adc test builds, but isn't set up correctly for the 2350 hardware yet. * The multicore and gpio_multicore tests only work from flash, seems to be a probe-rs issue. * The i2c and flash tests also only works from flash, these are probably bugs but I don't have time to run them down now. * The 2350 gpio test skips anything with pull downs. I think these fail because of E9. The float, bootsel, cyw43, and ethernet tests don't have 2350 equivalents. There's no reason to use the float romfuncs, use the FPU. Bootsel as a button isn't supported on the 2350 yet. The wifi and eth tests don't have appropriate hardware. The i2c test has also been tweaked to run on one core.
* Change pin in HIL testkalkyl2024-06-221-1/+1
|
* rp: Add multichannel ADCkalkyl2024-06-051-0/+13
|
* tests: use executor task arena instead of TAIT.Dario Nieuwenhuis2023-11-271-1/+0
|
* fixed rp adc testsIlya Epifanov2023-10-091-2/+10
|
* net-wiznet: add HIL test using w5100s.Dario Nieuwenhuis2023-08-161-2/+1
|
* rp: fix adc test flakinesspennae2023-08-031-1/+3
| | | | | | | | GP29 is connected to the cyw43 SCK pin. cyw43 is selected by default (due to rp2040 pins being input/pulldown by default), so the wifi chip is always selected and watches the SCK pin. this little bit of load on the SCK pin is enough to disturb the 300k voltage divider used for VSYS sensing, making the test flaky.
* rp: add single-channel dma from adcpennae2023-08-021-4/+51
| | | | | | | | | | with uniform treatment of adc inputs it's easy enough to add a new sampling method. dma sampling only supports one channel at the moment, though round-robin sampling would be a simple extension (probably a new trait that's implemented for Channel and &[Channel]). continuous dma as proposed in #1608 also isn't done here, we'd expect that to be a compound dma::Channel that internally splits a buffer in half and dispatches callbacks or something like that.
* rp: generalize adc inputs from pins to channelspennae2023-08-011-11/+11
| | | | | | this lets us treat pins and the temperature sensor uniformly using the same interface. uniformity in turn lets us add more adc features without combinatorial explosion of methods and types needed to handle them all.
* rp/adc: rewrite the modulepennae2023-07-071-0/+86
- don't require an irq binding for blocking-only adc - abstract adc pins into an AnyPin like interface, erasing the actual peripheral type at runtime. - add pull-up/pull-down functions for adc pins - add a test (mostly a copy of the example, to be honest) - configure adc pads according to datasheet - report conversion errors (although they seem exceedingly rare?) - drop embedded-hal interfaces. embedded-hal channels can do neither AnyPin nor pullup/pulldown without encoding both into the type