aboutsummaryrefslogtreecommitdiff
path: root/tests/rp/src/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Upgrade static-cell to v2.0Dario Nieuwenhuis2023-11-023-3/+3
|
* Merge pull request #2017 from ilya-epifanov/rp-adc-divDario Nieuwenhuis2023-10-201-2/+10
|\ | | | | | | added sampling frequency setting to adc capture methods on rp2040
| * fixed rp adc testsIlya Epifanov2023-10-091-2/+10
| |
* | time: Update examples, tests, and other code to use new Timer::after_x ↵Adam Greig2023-10-158-50/+50
|/ | | | convenience methods
* rp/bootsel: add test.Dario Nieuwenhuis2023-10-071-0/+26
|
* test: deduplicate net perf test code.Dario Nieuwenhuis2023-09-282-344/+27
|
* tests/rp: add teleprobe meta.Dario Nieuwenhuis2023-09-101-0/+1
|
* Test cleanupCaleb Jamison2023-09-101-4/+1
|
* I2c slave take 2Caleb Jamison2023-09-101-17/+16
| | | | | | refactored to split modules renamed to match upstream docs slight improvement to slave error handling
* rp2040 I2cDeviceCaleb Jamison2023-09-101-0/+215
| | | | | | | | Move i2c to mod, split device and controller Remove mode generic: I don't think it's reasonable to use the i2c in device mode while blocking, so I'm cutting the generic.
* Merge pull request #1763 from rubdos/sender-receiver-with-ctxDario Nieuwenhuis2023-08-222-5/+5
|\ | | | | | | Refactor Channel/Sender/Receiver poll methods
| * Deprecate *recv* in favor of *receive*Ruben De Smet2023-08-222-5/+5
| |
* | rp/flash: change naming to `blocking_*`, `new_blocking`.Dario Nieuwenhuis2023-08-181-7/+7
| | | | | | | | | | - Needed for consistency with other drivers. - Having two `new()` functions sometimes resulted in 'multiple applicable methods' errors.
* | net-wiznet: add HIL test using w5100s.Dario Nieuwenhuis2023-08-1619-36/+267
|/
* Update to embedded-io 0.5 (#1752)Dario Nieuwenhuis2023-08-072-2/+2
|
* 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.
* Merge pull request #1710 from Sizurka/rp-async-flashDario Nieuwenhuis2023-07-281-3/+11
|\ | | | | | | rp: add async flash
| * rp: add async flashDerek Hageman2023-07-281-3/+11
| | | | | | | | | | | | Implement an async flash mode using the XIP background best effort read interface. Only reads are actually async, write and erase remain blocking.
* | cyw43: Update firmware in HIL test.Dario Nieuwenhuis2023-07-281-2/+2
|/
* rp: relocate programs implicitly during loadpennae2023-07-282-3/+127
| | | | | | | | | | | this removed the RelocatedProgram construction step from pio uses. there's not all that much to be said for the extra step because the origin can be set on the input program itself, and the remaining information exposed by RelocatedProgram can be exposed from LoadedProgram instead (even though it's already available on the pio_asm programs, albeit perhaps less convenient). we do lose access to the relocated instruction iterator, but we also cannot think of anything this iterator would actually be useful for outside of program loading.
* rp/gpio: fix is_set_high/is_set_low, expand tests.Dario Nieuwenhuis2023-07-111-2/+34
|
* Merge pull request #1623 from pennae/rp-adcDario Nieuwenhuis2023-07-071-0/+86
|\ | | | | | | rp/adc: rewrite the module
| * 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
* | rp/pio: use bind_interrupts for irqspennae2023-07-072-3/+62
|/ | | | closes #1338
* Update probe-rs-cli -> probe-rsDario Nieuwenhuis2023-06-291-2/+2
|
* esp-hosted: add perf hil test.Dario Nieuwenhuis2023-06-221-8/+1
|
* rp: update rp-pac.Dario Nieuwenhuis2023-06-161-6/+4
|
* tests/rp: make cyw43-perf less strict.Dario Nieuwenhuis2023-06-081-3/+3
|
* tests/rp: update cyw43-perf for embassy-net changes.Dario Nieuwenhuis2023-06-081-2/+2
|
* cyw43: add perf HIL test.Dario Nieuwenhuis2023-06-061-0/+267
|
* ci: run HIL tests in parallel.Dario Nieuwenhuis2023-05-3014-0/+28
|
* Add HIL testkalkyl2023-05-161-0/+9
|
* rp: remove take!, add bind_interrupts!pennae2023-05-153-20/+32
|
* Merge #1423bors[bot]2023-05-021-0/+63
|\ | | | | | | | | | | | | | | 1423: rp: fix gpio InputFuture and inefficiencies r=pennae a=pennae InputFuture could not wait for edges without breaking due to a broken From impl, but even if the impl had been correct it would not have worked correctly because raw edge interrupts are sticky and must be cleared from software. also replace critical sections with atomic accesses, and do nvic setup only once. Co-authored-by: pennae <[email protected]>
| * rp/gpio: set up gpio interrupts only oncepennae2023-05-021-0/+63
| | | | | | | | | | | | doing this setup work repeatedly, on every wait, is unnecessary. with nothing ever disabling the interrupt it is sufficient to enable it once during device init and never touch it again.
* | rp: remove leftovers from #1414pennae2023-05-021-4/+0
|/ | | | forgot to remove these when they were no longer necessary or useful. oops.
* rp/uart: report errors from dma receivepennae2023-05-011-10/+228
|
* rp/uart: report errors from buffered uartpennae2023-05-011-20/+229
| | | | | | | | | this reports errors at the same location the blocking uart would, which works out to being mostly exact (except in the case of overruns, where one extra character is dropped). this is actually easier than going nuclear in the case of errors and nuking both the buffer contents and the rx fifo, both of which are things we'd have to do in addition to what's added here, and neither are needed for correctness.
* tests/rp: test error conditions for uartpennae2023-05-011-11/+148
|
* tests/rp: fix buffered uart testpennae2023-05-011-3/+3
| | | | | | the rp uart receive fifo is 32 entries deep, so the 31 byte test data fits into it without needing any buffering. extend to 48 bytes to fill the entire fifo and the 16 byte test buffer.
* rp: add PWM apipennae2023-04-231-0/+142
|
* rp: hook up softfloat rom intrinsicspennae2023-04-191-0/+53
| | | | | | rp-hal has done this very well already, so we'll just copy their entire impl again. only div.rs needed some massaging because our sio access works a little differently, everything else worked as is.
* fix: spi transfer bug and additions to testLachezar Lechev2023-03-261-3/+23
| | | | Signed-off-by: Lachezar Lechev <[email protected]>
* chore: add spi_async tests for uneven buffersLachezar Lechev2023-03-241-4/+40
| | | | Signed-off-by: Lachezar Lechev <[email protected]>
* Add HIL test for into_buffered uart on embassy-rpMathias2023-03-141-0/+54
|
* Refactor after reviewkalkyl2022-12-131-0/+47
|
* rp: add OutputOpenDrain input test.Dario Nieuwenhuis2022-12-061-3/+25
|
* rp/uart: use lockfree ringbuffer.Dario Nieuwenhuis2022-11-251-8/+5
| | | | This gets rid of another PeripheralMutex usage.