aboutsummaryrefslogtreecommitdiff
path: root/examples/rp
Commit message (Collapse)AuthorAgeFilesLines
* Merge #1414bors[bot]2023-05-011-1/+8
|\ | | | | | | | | | | | | | | 1414: rp: report errors from buffered and dma uart receives r=Dirbaio a=pennae neither of these reported errors so far, which is not ideal. add error reporting to both of them that matches the blocking error reporting as closely as is feasible, even allowing partial receives from buffered uarts before errors are reported where they would have been by the blocking code. dma transfers don't do this, if an errors applies to any byte in a transfer the entire transfer is nuked (though we probably could report how many bytes have been transferred). Co-authored-by: pennae <[email protected]>
| * rp/uart: report errors from dma receivepennae2023-05-011-1/+8
| |
* | rp/pio: write instr memory only from commonpennae2023-05-013-15/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instruction memory is a shared resource. writing it only from PioCommon clarifies this, and perhaps makes it more obvious that multiple state machines can share the same instructions. this also allows *freeing* of instruction memory to reprogram the system, although this interface is not entirely safe yet. it's safe in the sense rusts understands things, but state machines may misbehave if their instruction memory is freed and rewritten while they are running. fixing this is out of scope for now since it requires some larger changes to how state machines are handled. the interface provided currently is already unsafe in that it lets people execute instruction memory that has never been written, so this isn't much of a drawback for now.
* | rp/pio: move non-sm-specific methods to PioCommonpennae2023-05-012-12/+19
|/ | | | | | | | | | pin and irq operations affect the entire pio block. with pins this is not very problematic since pins themselves are resources, but irqs are not treated like that and can thus interfere across state machines. the ability to wait for an irq on a state machine is kept to make synchronization with user code easier, and since we can't inspect loaded programs at build time we wouldn't gain much from disallowing waits from state machines anyway.
* Merge branch 'embassy-rs:master' into masterChuck Davis2023-04-281-1/+1
|\
| * Bump versions preparing for -macros and -executor releaseUlf Lilleengen2023-04-271-1/+1
| |
* | Remove external-lora-phy feature.ceekdee2023-04-281-1/+1
|/
* rp: remove pio Cargo feature.Dario Nieuwenhuis2023-04-261-1/+1
| | | | We shouldn't have Cargo features if their only purpose is reduce cold build time a bit.
* Deprecate original LoRa drivers. Update rust-lorawan releases.ceekdee2023-04-251-2/+2
|
* Add lora-phy examples.ceekdee2023-04-234-0/+437
|
* Merge branch 'embassy-rs:master' into masterChuck Davis2023-04-231-0/+27
|\
| * rp: add PWM apipennae2023-04-231-0/+27
| |
* | Use released lora-phy.ceekdee2023-04-211-1/+1
| |
* | Add external LoRa physical layer functionality.ceekdee2023-04-211-1/+5
|/
* enable inline-asm feature for cortex-m in examplespennae2023-04-181-1/+1
| | | | | | inline assembly is supported since rust 1.59, we're way past that. enabling this makes the compiled code more compact, and on rp2040 even decreses memory usage by not needing thunks in sram.
* Release embassy-sync v0.2.0Dario Nieuwenhuis2023-04-131-1/+1
|
* Update embedded-hal crates.Dario Nieuwenhuis2023-04-063-126/+39
|
* executor: add Pender, rework Cargo features.Dario Nieuwenhuis2023-04-031-1/+1
| | | | | | | | | This introduces a `Pender` struct with enum cases for thread-mode, interrupt-mode and custom callback executors. This avoids calls through function pointers when using only the thread or interrupt executors. Faster, and friendlier to `cargo-call-stack`. `embassy-executor` now has `arch-xxx` Cargo features to select the arch and to enable the builtin executors (thread and interrupt).
* Example using the PIO to drive WS2812 aka Neopixel RGB ledsCaleb Jamison2023-03-112-0/+143
| | | | This example also uses a pio program compiled at runtime, rather than one built at compile time. There's no reason to do that, but it's probably useful to have an example that does this as well.
* Fix a typo in "PioPeripheral"sekoia2023-02-152-2/+2
|
* usb: unify ControlHandler+DeviceStateHandler, route all control requests to ↵Dario Nieuwenhuis2023-02-082-2/+0
| | | | | | | | all handlers. - Allows classes to handle vendor requests. - Allows classes to use a single handler for multiple interfaces. - Allows classes to access the other events (previously only `reset` was available).
* net: allocate space for 2 sockets, needed for dhcp.Dario Nieuwenhuis2023-01-191-1/+1
|
* Add smoltcp dhcp socket configurationPaweł Jan Czochański2023-01-191-8/+3
|
* Merge #1142bors[bot]2023-01-141-1/+1
|\ | | | | | | | | | | | | | | | | | | 1142: More rp2040 BufferedUart fixes r=Dirbaio a=timokroeger * Refactor init code * Make it possible to drop RX without breaking TX (or vice versa) * Correctly handle RX buffer full scenario Co-authored-by: Timo Kröger <[email protected]>
| * rp: Fix BufferedUart drop codeTimo Kröger2023-01-041-1/+1
| | | | | | | | Only unregister the interrupt handler when both parts are inactive
* | rp2040: add {tx,rx}-only constructors to UARTPedro Ferreira2023-01-041-0/+42
|/
* rp: switch to released 0.2.1 pio crate.Dario Nieuwenhuis2022-12-261-4/+1
|
* net: split driver trait to a separate crate.Dario Nieuwenhuis2022-12-261-1/+1
|
* net: remove unused pool-x featuresDario Nieuwenhuis2022-12-261-1/+1
|
* Remove lifetime, use pac fieldskalkyl2022-12-241-3/+3
|
* embassy-rp: Add Watchdogkalkyl2022-12-241-0/+48
|
* Change log level to debugkalkyl2022-12-231-1/+1
|
* embassy-rp: Add split() to BufferedUartkalkyl2022-12-222-1/+58
|
* cargo fmtAaron Tsui2022-12-201-2/+2
|
* add convert_to_celsius function in the adc moduleAaron Tsui2022-12-201-1/+6
| | | | | | modify RP2040 adc example to get inside biased bipolar diode voltage, then convert this temperature sensor data into Celsius degree, according to chapter 4.9.5. Temperature Sensor in RP2040 datasheet.
* usb/cdc-ncm: add embassy-net Device implementation.Dario Nieuwenhuis2022-12-132-124/+18
|
* Merge branch 'master' into multicoreHenrik Alsér2022-12-133-1/+187
|\
| * Added RelocateProgram class for adjusting PIO-programs for different origins.Simon Berg2022-12-092-16/+25
| |
| * PIO support for RPi PicoSimon Berg2022-12-093-1/+178
| |
* | Refactor after reviewkalkyl2022-12-131-3/+2
| |
* | Cleanupkalkyl2022-12-101-4/+3
| |
* | Feature gate critical-section-implkalkyl2022-12-101-1/+1
| |
* | fmtkalkyl2022-12-101-2/+2
| |
* | embassy-rp: Add multicore supportkalkyl2022-12-102-1/+64
|/
* Bump defmt-rtt to 0.4Dario Nieuwenhuis2022-11-291-1/+1
|
* Switch to async-fn-in-traitDario Nieuwenhuis2022-11-251-2/+2
|
* Merge #1059bors[bot]2022-11-221-0/+33
|\ | | | | | | | | | | | | | | 1059: embassy-rp: Add basic ADC module r=kalkyl a=kalkyl Oneshot ADC Co-authored-by: Henrik Alsér <[email protected]>
| * embassy-rp: Add basic ADC moduleHenrik Alsér2022-11-151-0/+33
| |
* | feat: embassy-usb-logger and example for rpi picoUlf Lilleengen2022-11-182-0/+32
|/ | | | | | * Add embassy-usb-logger which allows logging over USB for any device implementing embassy-usb * Add example using logger for rpi pico.
* Rebase on masterMathias2022-10-271-2/+2
|\