aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src/bin
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1763 from rubdos/sender-receiver-with-ctxDario Nieuwenhuis2023-08-222-2/+2
|\ | | | | | | Refactor Channel/Sender/Receiver poll methods
| * Deprecate *recv* in favor of *receive*Ruben De Smet2023-08-222-2/+2
| |
* | rp/flash: change naming to `blocking_*`, `new_blocking`.Dario Nieuwenhuis2023-08-181-17/+17
| | | | | | | | | | - Needed for consistency with other drivers. - Having two `new()` functions sometimes resulted in 'multiple applicable methods' errors.
* | Update embedded-hal to 1.0.0-rc.1 (#1783)Dario Nieuwenhuis2023-08-164-4/+4
| |
* | net-wiznet: rename from embassy-net-w5500.Dario Nieuwenhuis2023-08-154-12/+14
| |
* | net-w5500: extract chip-specific stuff to a trait.Dario Nieuwenhuis2023-08-154-0/+8
|/
* Update to embedded-io 0.5 (#1752)Dario Nieuwenhuis2023-08-078-14/+12
|
* rp: add single-channel dma from adcpennae2023-08-021-1/+1
| | | | | | | | | | 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-5/+6
| | | | | | 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.
* Uart pio fix zerosMichael van Niekerk2023-07-301-4/+6
| | | Prevent UART from only getting 0s from the output
* rp: add async flashDerek Hageman2023-07-281-4/+38
| | | | | | Implement an async flash mode using the XIP background best effort read interface. Only reads are actually async, write and erase remain blocking.
* rp: relocate programs implicitly during loadpennae2023-07-285-49/+17
| | | | | | | | | | | 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.
* Make pipes local vars.Dario Nieuwenhuis2023-07-281-15/+15
|
* Fixes as per PRMichael van Niekerk2023-07-281-66/+48
|
* CommentsMichael van Niekerk2023-07-281-91/+260
|
* Tx and Rx setupMichael van Niekerk2023-07-241-0/+262
|
* Added usb-hid keyboard example for rp pico.maximedeboeck2023-07-161-0/+188
|
* Round temp to make more sense.Henrik Berg2023-07-131-1/+4
|
* Add descriptions to all RP2040 examples. Some need hardware that was not ↵Henrik Berg2023-07-1333-5/+122
| | | | specified.
* RP: Don't reset RTC in Clock::init. Updated example.Henrik Berg2023-07-121-17/+9
|
* RP: Add save/restore to Rtc. Example use.Henrik Berg2023-07-121-21/+34
|
* RP: Rename Rtc to match STM32 impl. Remove setting RTC in new().Henrik Berg2023-07-121-4/+10
|
* RP: Add RTC example to rp2040.Henrik Berg2023-07-121-0/+33
|
* Merge pull request #1623 from pennae/rp-adcDario Nieuwenhuis2023-07-071-8/+9
|\ | | | | | | rp/adc: rewrite the module
| * rp/adc: rewrite the modulepennae2023-07-071-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | - 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-078-20/+64
| | | | | | | | closes #1338
* | Remove wifi envvars. They're annoying, they cause rust-analyzer errors when ↵Dario Nieuwenhuis2023-07-051-2/+5
|/ | | | opening the examples.
* update embedded-hal crates.Dario Nieuwenhuis2023-07-045-19/+44
|
* Update probe-rs-cli -> probe-rsDario Nieuwenhuis2023-06-294-8/+8
|
* Spelling.Henrik Berg2023-06-121-1/+1
|
* Code cleanup.Henrik Berg2023-06-121-1/+1
|
* Document external button. Add wifi_blinky.rs for easy beginners start.Henrik Berg2023-06-122-1/+63
|
* examples: use nicer InterrupExt to set irq priority in multprio.Dario Nieuwenhuis2023-06-091-11/+5
|
* Remove executor dep+reexports from HALs.Dario Nieuwenhuis2023-06-091-1/+1
| | | | Closes #1547
* net: Support dual stack IPRuben De Smet2023-06-077-9/+9
|
* net: StaticV4 config behind proto-ipv4Ruben De Smet2023-06-064-4/+4
|
* Rename StaticConfig to StaticConfigV4Ruben De Smet2023-06-067-7/+7
|
* Use make_static! from static-cell v1.1Dario Nieuwenhuis2023-06-0111-119/+44
|
* net-w5500: integrate into main repo.Dario Nieuwenhuis2023-05-314-54/+19
|
* Merge remote-tracking branch 'w5500/main' into w5500Dario Nieuwenhuis2023-05-314-0/+552
|\
| * move embassy-net-w5500 to subdir.Dario Nieuwenhuis2023-05-314-0/+552
|
* cyw43: adapt build to main embassy repo.Dario Nieuwenhuis2023-05-303-0/+360
|
* Switch to DMA, use new clocks, don't take ownership of pio commonCaleb Jamison2023-05-191-13/+31
|
* Pin fix, improve fifo handlingCaleb Jamison2023-05-191-1/+5
|
* rp/clocks: don't expose unstable pac itemspennae2023-05-171-2/+2
| | | | | | | exposing pac items kind of undermines the unstable-pac feature. directly exposing register structure is also pretty inconvenient since the clock switching code takes care of the src/aux difference in behavior, so a user needn't really be forced to write down decomposed register values.
* rp: Read flash unique id and jedec idkalkyl2023-05-161-0/+10
|
* Merge #1458bors[bot]2023-05-157-33/+52
|\ | | | | | | | | | | | | | | 1458: rp: remove take!, add bind_interrupts! r=Dirbaio a=pennae both of the uart interrupts now check a flag that only the dma rx path ever sets (and now unsets again on drop) to return early if it's not as they expect. this is ... not our preferred solution, but if bind_interrupts *must* allow mutiple handlers to be specified then this is the only way we can think of that doesn't break uarts. Co-authored-by: pennae <[email protected]>
| * rp: remove take!, add bind_interrupts!pennae2023-05-157-33/+52
| |
* | net: do not use smoltcp Instant/Duration in public API.Dario Nieuwenhuis2023-05-151-1/+1
|/
* rp: don't use SetConfig trait in PWM and PIO.Dario Nieuwenhuis2023-05-135-5/+0
| | | | | | It was intended to allow changing baudrate on shared spi/i2c. There's no advantage in using it for PWM or PIO, and makes it less usable because you have to have `embassy-embedded-hal` as a dep to use it.