summaryrefslogtreecommitdiff
path: root/embassy-stm32
AgeCommit message (Collapse)Author
2022-10-19Merge #1014bors[bot]
1014: Add memory barriers to H7 flash driver to mitigate PGSERR errors r=lulf a=matoushybl The stm32h7xx-hal uses only the ordering barrier, while the CubeMX uses the DSB and ISB instructions, to be on the safe side, both are used here. Without the barrier, the PG bit is not set, when the writes are being done, resulting in an error. Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
2022-10-18Enable defmt in embassy-hal-commonMatous Hybl
2022-10-18Add memory barriers to H7 flash driver to mitigate PGSERR errorsMatous Hybl
The stm32h7xx-hal uses only the ordering barrier, while the CubeMX uses the DSB and ISB instructions, to be on the safe side, both are used here.
2022-10-10Merge #1004bors[bot]
1004: Fix internal channels for adc v2 r=lulf a=chemicstry Internal channel reading was broken on adc_v2, because `Adc::read()` requires gpio pin trait, which was not implemented by `VrefInt`, `Temperature`, `Vbat`. The required configuration bits `tsvrefe`, `vbate` were not enabled either. This PR makes it a bit closer to how adc_v4 works. While at it, I also changed adc_v2 to use `RccPeripheral` instead of permanently enabling all ADCs. Co-authored-by: chemicstry <chemicstry@gmail.com>
2022-10-07Fix adc_v4 compilationchemicstry
2022-10-07Fix internal channel reading on adc_v2chemicstry
2022-10-07all Cargo.toml: Add license to all crate Cargo.toml fileschrysn
Closes: https://github.com/embassy-rs/embassy/issues/1002
2022-10-07Use RccPeripheral for adc_v2chemicstry
2022-09-30Merge #992bors[bot]
992: (embassy-stm32): remove flash lock/unlock public API from stm32 flash r=lulf a=MathiasKoch Instead, perform the unlocking and locking automatically on erase and write operations. This makes the `embedded-storage` abstraction actually useable in libraries, while still keeping the flash peripheral locked the majority of the time. Co-authored-by: Mathias <mk@blackbird.online>
2022-09-30Implement embedded-hal-nb for uartMathias
2022-09-30Remove flash lock/unlock public API from stm32 flash, and perform the ↵Mathias
unlocking and locking automatically on erase and write operations
2022-09-29Merge branch 'master' of https://github.com/embassy-rs/embassy into ↵Mathias
embassy-stm32/uart-eh1
2022-09-29Update embedded-hal versions and explicitly pinUlf Lilleengen
2022-09-29Remove code duplication on nb_readMathias
2022-09-28Add E-H1 uart blocking & nb implementationMathias
2022-09-27usb: make HALs depend only on embassy-usb-driver.Dario Nieuwenhuis
2022-09-26Rework STM32 BufferedUart internals so we can split into Rx and Tx like ↵Guillaume MICHEL
embassy-nrf
2022-09-26usb: split driver trait to separate crate.Dario Nieuwenhuis
2022-09-26Merge #960bors[bot]
960: Add non blocking Bxcan constructor r=Dirbaio a=andyblarblar This PR adds a non-blocking constructor to the Bxcan Can wrapper struct. This allows for the creation of the Can periferal without blocking for a sync with the Can bus. Co-authored-by: Andrew Ealovega <Andrew@Ealovega.dev>
2022-09-22Replace futures::future::join -> embassy_futures::join::join.Dario Nieuwenhuis
2022-09-22Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis
2022-09-22Update Rust nightly.Dario Nieuwenhuis
Removes feature(generic_associated_types)
2022-09-21Add non blocking Bxcan constructor.Andrew Ealovega
Signed-off-by: Andrew Ealovega <Andrew@Ealovega.dev>
2022-09-15make `State::new()` const, consistent with othersVincent Stakenburg
2022-09-04Merge #939bors[bot]
939: time: add more tick rates, use 1mhz as default. r=Dirbaio a=Dirbaio Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-04Merge #839bors[bot]
839: Misc LoRaWAN improvements r=lulf a=timokroeger Trying too get `embassy-lora` running on a [LoRa-E5 Dev Board](https://wiki.seeedstudio.com/LoRa_E5_Dev_Board/). I can see the join message arriving in the The Things Network console but the device does not receive the accept message yet. Opening this PR anyway because I think there are some nice things to decouple the lora crate from the nucleo board. `@lulf` Could you test if this PR breaks your LoRa setup? Marking as draft for the time being. Co-authored-by: Timo Kröger <timokroeger93@gmail.com> Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-09-02time: add more tick rates, use 1mhz as default.Dario Nieuwenhuis
2022-08-31Do not use cfg_if for embedded-hal-async feature gates.Dario Nieuwenhuis
Old code used `cfg_if!` because rustc still parses code inside disabled cfg's, and Rust stable at that time couldn't parse the new GAT where-clause location. This is not the case anymore.
2022-08-26Use `pub(crate)` visibility for internal SPITimo Kröger
SubGhz provides a public interface for the radio connected to internal SPI `#[allow(dead_code)]` is required for CI to succeed
2022-08-26stm32wl: Fix RCCTimo Kröger
* `MSIRGSEL = 1` was required for MSI accept the updated MSI range * Reorder enable and clock switching to properly handle the jump from the default 4MHz MSI to a higher MSI freuquency
2022-08-26stm32wl: Do not require external SPI pins for SUBGHZTimo Kröger
For the Seeed Studio Lora-E5 those pins conflict with the radio frontend control GPIOS (PA4 and PA5).
2022-08-22split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis
2022-08-19fix lpuart implementation when there isn't one presentVincent Stakenburg
2022-08-19implement support for LPUARTVincent Stakenburg
2022-08-18Split embassy-time from embassy-executor.Dario Nieuwenhuis
2022-08-17Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis
2022-08-17Update to critical-section 1.0, atomic-polyfill 1.0Dario Nieuwenhuis
2022-08-17stm32/rcc: fix unnecessary parenthesesDario Nieuwenhuis
2022-08-17stm32/sdmmc: remove cast no longer allowed on latest nightly due to ↵Dario Nieuwenhuis
nonexhaustive enum.
2022-08-10Make sda/scl pullups separate as in nRF HALchemicstry
2022-08-09Implement I2C pullup configurationchemicstry
2022-08-04Use RccPeripheral for DAC and add a hackfix for H7chemicstry
2022-08-04Merge v1, v2 DAC and update register definitionschemicstry
2022-07-29Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis
2022-07-27Make vref units explicitchemicstry
2022-07-27Improve `set_vref` docschemicstry
2022-07-27Improve ADC configuration optionschemicstry
2022-07-24Merge #876bors[bot]
876: Add defmt support to embassy-embedded-hal errors r=Dirbaio a=matoushybl `defmt::unwrap!()` should now work with shared buses. I tested it only with I2C as I don't have SPI in the target project. Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
2022-07-24Add defmt support to embassy-embedded-hal errorsMatous Hybl
2022-07-23rename PwmPin::new_chX, update examples.Dario Nieuwenhuis