summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-18Merge pull request #821 from embassy-rs/defmt-traceDario Nieuwenhuis
Add env DEFMT_LOG=trace to all examples.
2022-06-18Update to 2021 edition. (#820)Dario Nieuwenhuis
2022-06-18Add env DEFMT_LOG=trace to all examples.Dario Nieuwenhuis
2022-06-18Update rust nightly. (#819)Dario Nieuwenhuis
2022-06-16Merge #816bors[bot]
816: Fix doc comments for BpskPacketParams r=lulf a=danbev Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
2022-06-16Merge #813bors[bot]
813: Document remaining public APIs in embassy crate r=lulf a=lulf This also includes the README.md in the toplevel crate documentation, fixing a few formatting issues with it as well. Please review the mutex in detail in case I've misunderstood/missed a few things there. Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-06-16Fix doc comments for BpskPacketParamsDaniel Bevenius
2022-06-16Merge #815bors[bot]
815: Fix typo in LoRaPacketParams::new doc r=Dirbaio a=danbev Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
2022-06-16Fix typo in LoRaPacketParams::new docDaniel Bevenius
2022-06-15Merge #814bors[bot]
814: Extract setting of lora modulation params r=lulf a=danbev This commit suggests extracting the lora modulation parameters into a separate function which can then be called from both the do_tx, and the do_rx functions. Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
2022-06-15Extract setting of lora modulation paramsDaniel Bevenius
This commit suggests extracting the lora modulation parameters into a separate function which can then be called from both the do_tx, and the do_rx functions.
2022-06-15Merge #811bors[bot]
811: Sync subghz peripheral support with stm32wlxx-hal r=lulf a=lulf * A few more registers exposed * Fix for "sleeping" * Updating comments Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-06-15Improve mutex wordingUlf Lilleengen
2022-06-15Ignore compiling rust codeUlf Lilleengen
2022-06-15Add missing documentation for all public modules and typesUlf Lilleengen
2022-06-15Ensure links get formatted correctly in cargo docUlf Lilleengen
2022-06-15Include README.md in crate documentationUlf Lilleengen
2022-06-15FIx broken link warningsUlf Lilleengen
2022-06-15Cargo fmtUlf Lilleengen
2022-06-14Sync subghz peripheral support with stm32wlxx-halUlf Lilleengen
2022-06-13Merge #809bors[bot]
809: Allow compiling usb-serial without defmt r=lulf a=lulf Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-06-13Allow compiling usb-serial without defmtUlf Lilleengen
2022-06-13Merge #808bors[bot]
808: Add rustfmt.toml with some nice settings. r=lulf a=Dirbaio Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-06-12Run rustfmt.Dario Nieuwenhuis
2022-06-12Add rustfmt.toml with some nice settings.Dario Nieuwenhuis
2022-06-12Merge #806bors[bot]
806: Add embassy-cortex-m crate. r=Dirbaio a=Dirbaio - Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`. - Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore) - Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`. Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-06-12Add embassy-cortex-m crate.Dario Nieuwenhuis
- Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`. - Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore) - Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
2022-06-12Merge #807bors[bot]
807: Rename channel to mpmc r=huntc a=huntc I've renamed the channel module for the MPMC as `mpmc`. There was a previous debate about this, but I feel that the strategy here avoids importing `channel::channel`. The change leaves `signal::Signal`, but I think that's ok. It is all a bit subjective of course. The bottom line for me is that I really like the term `mpmc` - it means something to me and aligns with broader naming e.g. in Tokio. Co-authored-by: huntc <huntchr@gmail.com>
2022-06-12Rename channel to mpmchuntc
I've renamed the channel module for the MPMC as mpmc. There was a previous debate about this, but I feel that the strategy here avoids importing `channel::channel`. The change leaves `signal::Signal`, but I think that's ok. It is all a bit subjective of course. The bottom line for me is that I really like the term mpmc - it means something to me and aligns with broader naming e.g. in Tokio.
2022-06-09common/PeripheralMutex: remove unsafe API. (#802)Dario Nieuwenhuis
Following the project's decision that "leak unsafe" APIs are not marked as "unsafe", update PeripheralMutex to accept non-'static state without unsafe. Fixes #801
2022-06-07Merge #797bors[bot]
797: Use correct index and bank for stm32 flash r=Dirbaio a=lulf The page index was wrong because it doesn't take FLASH_BASE into account. For l4, the page index register also depends on a bank selection register. Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-06-07Use correct index and bankUlf Lilleengen
2022-06-07Merge #796bors[bot]
796: nrf/twim: allow zero length transfers. r=Dirbaio a=Dirbaio bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-06-07nrf/twim: allow zero length transfers.Dario Nieuwenhuis
2022-06-07Merge #709bors[bot]
709: embassy-usb stm32 r=Dirbaio a=Dirbaio TODO - [x] Add cfgs for EP_COUNT, EP_MEMORY_ADDR. -- ended up doing it in stm32-data - [x] Auto-enable PWR USV in stm32l5, - [x] Auto-enable PWR on other families that need it -- didn't find any - [ ] ~~Assert at runtime that RCC has valid 48Mhz clock?~~ -- won't do it yet, too messy without rcc cleanup - [x] Tested on STM32L5 - [x] Tested on STM32F303ZE - [x] Tested on STM32F103c8 - [x] Fix duplicated irqs on STM32F303 in stm32data, remove workaround in embassy-stm32 - [x] Test HID example - [x] Test NCM example Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-06-07stm32: add USB driver.Dario Nieuwenhuis
2022-06-06Merge #795bors[bot]
795: Update stm32-metapac. r=Dirbaio a=Dirbaio Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-06-07Update stm32-metapac.Dario Nieuwenhuis
2022-06-06Merge #792 #794bors[bot]
792: Add example for using a Signal. r=Dirbaio a=hydra I didn't find an example, so I created one for the STM32H7. Code based on the nrf mutex.rs example. 794: Fix F1 compilation by implementig AF pullup r=Dirbaio a=chemicstry Embassy fails to compile on `STM32F103RET6`, because `set_as_af_pull` function is missing for GPIOv1: ``` error[E0599]: no method named `set_as_af_pull` found for mutable reference `&mut CLK` in the current scope --> C:\Users\chemi\.cargo\git\checkouts\embassy-0cff10c9b9902273\46473ae\embassy-stm32\src\sdmmc\mod.rs:1390:21 | 1390 | clk_pin.set_as_af_pull(clk_pin.af_num(), AFType::OutputPushPull, Pull::None); | ^^^^^^^^^^^^^^ method not found in `&mut CLK` ``` GPIOv1 actually supports pullups in AF mode, but only for inputs. The `sdmmc` driver, which was causing compile errors uses pullups for push-pull outputs and this will silently fail. But IMO not adding pullups to sdmmc interface is a hardware design problem, not HAL. Co-authored-by: Dominic Clifton <me@dominicclifton.name> Co-authored-by: chemicstry <chemicstry@gmail.com> Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-06-06stm32: add stm32f103re to CIDario Nieuwenhuis
2022-06-06Fix AF pullup configuration for GPIOv1chemicstry
2022-06-06Add example for using a Signal.Dominic Clifton
2022-06-03Merge #791bors[bot]
791: Channel clarification r=lulf a=diondokter This was unclear from the docs. Co-authored-by: Dion Dokter <diondokter@gmail.com>
2022-06-03Channel clarificationDion Dokter
This was unclear from the docs.
2022-06-02Update copyright holder names and add notice file (#790)Ulf Lilleengen
* Update copyright holder names Fixes #472 * Add notice file to clarify copyright ownership The NOTICE file declares that copyright is owned by the individuals contributing to Embassy, and that all contributed work is licensed under Apache-2.0 or MIT.
2022-06-01Merge #789bors[bot]
789: Embassy net improvements r=lulf a=lulf I found these useful while implementing the TcpClient traits for embedded-nal-async: https://github.com/drogue-iot/drogue-device/blob/shared-tcp-stack/device/src/drivers/tcp/smoltcp.rs Once e-n-a PR is merged, I might add the above client to embassy-net if you think it makes sense. Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-06-01Add embedded-io implementation of ConnectErrorUlf Lilleengen
2022-06-01Add reexport for ipv6 types with proto-ipv6Ulf Lilleengen
2022-05-31Merge #784bors[bot]
784: stm32: make tick rate configurable r=Dirbaio a=willglynn The stm32 time drivers support arbitrary tick rates but the associated Cargo features do not. Enabling any time driver presently enables `embassy/time-tick-32768hz`; instead, enable only `embassy/time`. Additionally, `embassy/time` now functions in the absence of any `embassy/time-tick-*` feature, defaulting to 32768 Hz if left unspecified. Co-authored-by: Will Glynn <will@willglynn.com> Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-05-31fix build adding missing time-tick feature.Dario Nieuwenhuis