aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-179-19/+23
|
* Update to critical-section 1.0, atomic-polyfill 1.0Dario Nieuwenhuis2022-08-171-1/+1
|
* Implement I2C pullup configurationchemicstry2022-08-093-3/+30
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-2911-21/+22
|
* Merge pull request #822 from embassy-rs/remove-authorsDario Nieuwenhuis2022-06-181-1/+0
|\ | | | | Remove the authors field from Cargo.tomls
| * Remove the authors field from Cargo.tomlsDario Nieuwenhuis2022-06-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | It currently contains whoever was first to write some code for the crate, even if many more people have contributed to it later. The field is "sort of" deprecated, it was made optional recently: https://rust-lang.github.io/rfcs/3052-optional-authors-field.html Due the the reasons listed there I believe removing it is better than setting it to generic fluff like "The Embassy contributors".
* | Merge pull request #821 from embassy-rs/defmt-traceDario Nieuwenhuis2022-06-181-0/+3
|\ \ | |/ |/| Add env DEFMT_LOG=trace to all examples.
| * Add env DEFMT_LOG=trace to all examples.Dario Nieuwenhuis2022-06-181-0/+3
| |
* | Update to 2021 edition. (#820)Dario Nieuwenhuis2022-06-181-2/+1
|/
* Run rustfmt.Dario Nieuwenhuis2022-06-1214-52/+19
|
* examples/stm32*, tests/stm32: specify time-tick-32768hzWill Glynn2022-05-311-1/+1
|
* Update embedded-hal-async to 0.1.0-alpha.1Dario Nieuwenhuis2022-05-291-1/+1
|
* Async shared bus for SPI & I2C + rename embassy-traits (#769)Henrik Alsér2022-05-263-3/+3
| | | | | | | | | | | | | | | | | | | * Rename embassy-traits to embassy-embedded-hal * Rename embassy-traits to embassy-embedded-hal * Add shared bus for SPI and I2C * rustfmt * EHA alpha 1 * Rename embedded-traits in examples * rustfmt * rustfmt Co-authored-by: Henrik Alsér <[email protected]>
* Remove embassy_hal_common::usb.Dario Nieuwenhuis2022-05-042-116/+1
| | | | | | | | | | | The replacement is `embassy-usb`. There's a WIP driver for stm32 USBD in #709, there's no WIP driver for stm32 USB_OTG. This means we're left without USB_OTG support for now. Reason for removing is I'm going to soon remove `embassy::io`, and USB uses it. I don't want to spend time maintaining "dead" code that is going to be removed. Volunteers welcome, either to update old USB to the new IO, or write a USB_OTG driver fo the new USB.
* Switch to crates.io embedded-hal, embedded-hal-async.Dario Nieuwenhuis2022-04-222-31/+2
| | | | | This temporarily removes support for the async UART trait, since it's not yet in embedded-hal-async.
* fix clock in l4 rng examplePhilip A Reimer2022-04-111-3/+4
|
* add stm32l4 hsi48 and usb examplePhilip A Reimer2022-04-092-1/+118
|
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-0217-63/+46
|
* Update rust nightly, embedded-hal 1.0, embedded-hal-async.Dario Nieuwenhuis2022-03-112-2/+2
|
* Update examplesGrant Miller2022-03-081-1/+1
|
* stm32: add rust stable supportDario Nieuwenhuis2022-02-121-1/+1
|
* stm32: Remove OptionalPinDario Nieuwenhuis2022-02-101-2/+1
| | | | | | | | | The idea behind OptionalPin has a few problems: - you need to impl the signal traits for NoPin which is a bit weird https://github.com/embassy-rs/embassy/blob/master/embassy-stm32/src/dcmi.rs#L413-L416 - you can pass any combination of set/unset pins, which needs checking at runtime https://github.com/embassy-rs/embassy/blob/master/embassy-stm32/src/dcmi.rs#L130 The replacement is to do multiple `new` constructors for each combination of pins you want to take.
* traits: migrate Delay to embedded-hal 1.0+async, remove Rng and Flash.Dario Nieuwenhuis2022-01-273-9/+6
|
* Support unstable-trait feature for stm32Ulf Lilleengen2022-01-265-12/+12
|
* stm32: add `time-driver-any` cargo feature that automatically picks one ↵Dario Nieuwenhuis2022-01-241-1/+1
| | | | available timer.
* stm32/spi: expose all functionality as inherent methods.Dario Nieuwenhuis2022-01-191-2/+1
|
* stm32/i2c: expose all functionality as inherent methods.Dario Nieuwenhuis2022-01-192-3/+1
|
* stm32/usart: expose all functionality as inherent methods.Dario Nieuwenhuis2022-01-192-5/+3
|
* stm32/exti: expose all functionality as inherent methods.Dario Nieuwenhuis2022-01-191-1/+0
|
* stm32/gpio: expose all functionality as inherent methods.Dario Nieuwenhuis2022-01-195-18/+13
|
* Make exti an optional featureUlf Lilleengen2022-01-121-1/+1
| | | | | * Add embassy-stm32 build with exti * Add exti to examples
* stm32/rcc: remove builders on Config.Dario Nieuwenhuis2022-01-041-2/+2
| | | | | This makes API consistent with other Config structs in Embassy, where the convention is to not use builders.
* Add adapter for implementing async traits for blocking typesUlf Lilleengen2021-12-173-0/+118
| | | | | | | | This allows writing drivers relying on async traits, while still functioning with implementations that already implement the embedded-hal traits. Add examples to stm32l4 for using this feature.
* examples: remove unused deps.Dario Nieuwenhuis2021-11-291-1/+0
|
* Remove unused depsDario Nieuwenhuis2021-11-151-1/+0
|
* Update to defmt 3.0ish.Bob McWhirter2021-11-151-14/+5
| | | | Lots of gitrevs deps.
* Replace rustflags with build.rs extra-link-args.Dario Nieuwenhuis2021-11-072-12/+4
| | | | | | | | | | | | Rustflags apply to ALL the crates in the graph, while we only need them for the toplevel crate which is the only one getting linked. Rustflags are not equal for all crates, this caused cargo to re-build the same dependency crate multiple times uselessly. After this change, deps are reused more, making builds faster. Note that this only applies when sharing the target/ dir for multiple crates in the repo which is not the default.
* Adjust for STM32U5.Bob McWhirter2021-11-021-1/+2
|
* Merge #456bors[bot]2021-10-261-0/+37
|\ | | | | | | | | | | | | | | 456: Fix L4 clock setup for MSI and PLL to allow RNG operation r=Dirbaio a=lulf Example is tested on STM32L475VG. Co-authored-by: Ulf Lilleengen <[email protected]>
| * Fix clock setup for MSI and PLL to allow RNG opereationUlf Lilleengen2021-10-261-0/+37
| | | | | | | | Add RNG example using PLL as clock source.
* | Add implementation of async trait for STM32 I2C v2Ulf Lilleengen2021-10-211-0/+35
|/ | | | | * Add DMA read implementation for I2C v2 * Add example using DMA for I2C
* Add i2c example for L4Ulf Lilleengen2021-10-201-0/+28
|
* Support for STM32L1Ulf Lilleengen2021-09-211-1/+2
| | | | | | | * Add RCC * Fix more issues with dash in chip names * Update stm32-data version * Add blinky and spi example
* Update lots of depsDario Nieuwenhuis2021-09-111-7/+7
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-039-18/+0
| | | | trait_alias seems unused. no idea why it's there.
* stm32: move dbgmcu stuff to toplevel config setting, defaulting to true.Dario Nieuwenhuis2021-08-1910-42/+1
|
* examples: Consistently use unwrap! in favor of .unwrap()Ben Gamari2021-08-054-8/+8
| | | | | Unfortunately errors from `embedded_graphics` and `core` doesn't provide the necessary instances currently.
* stm32/time: add Cargo features to choose tim2/tim3Dario Nieuwenhuis2021-08-051-1/+1
|
* time: replace dyn clock/alarm with a global Driver traitDario Nieuwenhuis2021-08-054-4/+0
|
* Update nightly, remove removed features.Dario Nieuwenhuis2021-08-049-18/+0
|