aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4/src
Commit message (Collapse)AuthorAgeFilesLines
* stm32/l4: set rtc clock source in rccxoviat2023-08-081-4/+1
|
* stm32/rtc: fix exampelxoviat2023-08-061-1/+1
|
* Merge pull request #1606 from JcBernack/rng-updateDario Nieuwenhuis2023-07-301-2/+6
|\ | | | | | | STM32: RNG update
| * stm32/rng: use bind_interrupts!.Dario Nieuwenhuis2023-07-311-2/+6
| |
* | Set frequency in stm32 SPI examplesbofh2023-07-313-11/+15
| |
* | Fix formattingbofh2023-07-301-9/+1
| |
* | Fix stm32 SPI examplesbofh2023-07-303-15/+1
|/
* stm32: fix DAC examplesAdam Greig2023-07-221-1/+1
| | | | | | | | The DAC driver defaults to enabling the channel trigger, but leaves it at the default value of TIM6 TRGO, then performs a software trigger after writing the new output value. We could change the trigger selection to software trigger, but for this example it's simpler to just disable the trigger.
* Merge branch 'main' of https://github.com/embassy-rs/embassy into ↵Mathias2023-07-035-21/+150
|\ | | | | | | embassy-stm32/rcc-rtc-l4
| * Merge pull request #1565 from JuliDi/mainDario Nieuwenhuis2023-06-292-11/+143
| |\ | | | | | | | | | Implement DMA for DAC on STM32
| | * remove need for StaticCell in dac_dma example for stm32l4JuliDi2023-06-281-21/+8
| | |
| | * attempt at fixing ciJuliDi2023-06-281-1/+0
| | |
| | * attempt at fixing ciJuliDi2023-06-281-1/+1
| | |
| | * add docJuliDi2023-06-281-0/+2
| | |
| | * Update DAC examples, add DAC + DMA exampleJuliDi2023-06-282-10/+154
| | |
| * | stm32/otg: add VBUS detection.Dario Nieuwenhuis2023-06-271-1/+3
| |/ | | | | | | Fixes #1442.
| * stm32: update stm32-metapac.Dario Nieuwenhuis2023-06-192-11/+7
| |
* | L4: Switch to MSI to prevent problems with PLL configuration, and enable ↵Mathias2023-07-011-0/+50
|/ | | | power to AHB bus clock to allow RTC to run
* stm32: move to bind_interruptsxoviat2023-05-246-18/+36
| | | | disable lora functionality for now
* Fix some typosDirk Stolle2023-05-081-1/+1
|
* Add MCO support for L4 and F4 familiesMathieu Dupont2023-04-031-0/+27
|
* Fix examples broken by the macro fix.Dario Nieuwenhuis2023-03-083-3/+3
|
* usb: unify ControlHandler+DeviceStateHandler, route all control requests to ↵Dario Nieuwenhuis2023-02-081-1/+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).
* stm32 otg: add examples.chemicstry2023-01-111-0/+108
|
* stm32: Add support for read_until_idle on UARTGuillaume MICHEL2022-10-262-2/+6
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-1810-11/+11
|
* examples Remove the `fn config()` idiom.Dario Nieuwenhuis2022-08-171-6/+3
| | | | | It was only useful for doing #[embassy_executor::main(config = "config()")]`. Now that it's gone, it makes more sense to build the config in main directly.
* Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-179-19/+23
|
* Implement I2C pullup configurationchemicstry2022-08-093-3/+30
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-2910-20/+20
|
* Run rustfmt.Dario Nieuwenhuis2022-06-1214-52/+19
|
* Async shared bus for SPI & I2C + rename embassy-traits (#769)Henrik Alsér2022-05-262-2/+2
| | | | | | | | | | | | | | | | | | | * 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-041-115/+0
| | | | | | | | | | | 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-221-30/+0
| | | | | 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-091-0/+115
|
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-0216-62/+45
|
* Update rust nightly, embedded-hal 1.0, embedded-hal-async.Dario Nieuwenhuis2022-03-111-1/+1
|
* Update examplesGrant Miller2022-03-081-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-272-8/+5
|
* Support unstable-trait feature for stm32Ulf Lilleengen2022-01-264-11/+10
|
* 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
|
* 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.
* 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]>