aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Reexport unborrow macro in HALsMatous Hybl2022-04-071-1/+1
|
* Simpler Channel.Dario Nieuwenhuis2022-04-061-17/+9
| | | | | | | - Allow initializing in a static, without Forever. - Remove ability to close, since in embedded enviromnents channels usually live forever and don't get closed. - Remove MPSC restriction, it's MPMC now. Rename "mpsc" to "channel". - `Sender` and `Receiver` are still available if you want to enforce a piece of code only has send/receive access, but are optional: you can send/receive directly into the Channel if you want.
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-0217-100/+104
|
* Cleanupchemicstry2022-03-161-1/+2
|
* Fix SDMMC v2 and add H7 examplechemicstry2022-03-161-0/+42
|
* Add support for splitting stm32 usart into TX and RXUlf Lilleengen2022-03-151-0/+67
| | | | | | | | * Keeps existing API for usart, but wraps it in Tx and Rx sub-types * Adds split() method similar to nRF for getting indepdendent TX and RX parts * Implements e-h traits for TX and RX types * Add stm32h7 example
* stm32: Register access for timers now doesn't require selfMatous Hybl2022-02-281-15/+8
|
* stm32: Add standard crate-wide macros for pin/dma traits, switch all drivers ↵Dario Nieuwenhuis2022-02-102-11/+17
| | | | to use them.
* stm32: Remove OptionalPinDario Nieuwenhuis2022-02-104-33/+9
| | | | | | | | | 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.
* stm32: Add support for FMCMatous Hybl2022-02-082-0/+205
|
* traits: migrate Delay to embedded-hal 1.0+async, remove Rng and Flash.Dario Nieuwenhuis2022-01-271-15/+4
|
* Support unstable-trait feature for stm32Ulf Lilleengen2022-01-262-4/+3
|
* stm32/spi: expose all functionality as inherent methods.Dario Nieuwenhuis2022-01-191-2/+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-194-12/+8
|
* Port the PWM example to H7, add low-level API example implementing 32-bit PWM.Matous Hybl2022-01-132-0/+195
|
* stm32h7/rcc: remove unneeded DMA enable settings.Dario Nieuwenhuis2022-01-042-3/+0
| | | | These are automatically enabled by dma::init().
* Add DCMI example.Matous Hybl2021-12-091-0/+339
|
* examples: remove unused deps.Dario Nieuwenhuis2021-11-291-2/+1
|
* Add MCO peripheral.Matous Hybl2021-11-111-0/+32
|
* Fix v2 ethernet pin definitions. Fix ethernet example for H7 nucleos.Matous Hybl2021-11-041-2/+2
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-039-18/+0
| | | | trait_alias seems unused. no idea why it's there.
* Formatting.Bob McWhirter2021-09-011-1/+1
|
* Rename Random impl to Rng.Bob McWhirter2021-09-012-8/+8
| | | | Create Random struct providing next_x(range) for all T:Rng.
* Formatting. Always formatting.Bob McWhirter2021-08-301-4/+4
|
* Move random utils to another trait.Bob McWhirter2021-08-301-1/+1
|
* Add example using ranged RNG.Bob McWhirter2021-08-271-0/+35
|
* stm32: move dbgmcu stuff to toplevel config setting, defaulting to true.Dario Nieuwenhuis2021-08-198-38/+0
|
* Add H7 exti button example using correct EXTI reg block offsets.Bob McWhirter2021-08-161-0/+36
|
* examples: Consistently use unwrap! in favor of .unwrap()Ben Gamari2021-08-052-5/+5
| | | | | Unfortunately errors from `embedded_graphics` and `core` doesn't provide the necessary instances currently.
* time: replace dyn clock/alarm with a global Driver traitDario Nieuwenhuis2021-08-056-63/+9
|
* Merge pull request #344 from bobmcwhirter/remove_buildersDario Nieuwenhuis2021-08-045-38/+24
|\ | | | | Remove builders from Config(s) and examples.
| * Formatting again.Bob McWhirter2021-08-044-5/+2
| |
| * Further work sharing config for example and removing duplicated code.Bob McWhirter2021-08-045-73/+20
| |
| * Remove unused import.Bob McWhirter2021-08-041-1/+0
| |
| * Formatting.Bob McWhirter2021-08-044-10/+10
| |
| * Remove builders from Config(s) and examples.Bob McWhirter2021-08-044-17/+60
| |
* | Update nightly, remove removed features.Dario Nieuwenhuis2021-08-047-14/+0
|/
* Merge pull request #341 from lulf/usart-dma-readDario Nieuwenhuis2021-08-041-1/+1
|\ | | | | Add uart::Read DMA-based implementation
| * Rename bread -> read_blockingUlf Lilleengen2021-08-041-1/+1
| |
| * Add uart::Read DMA-based implementationUlf Lilleengen2021-08-031-1/+1
| | | | | | | | * Rename existing read() to bread() (blocking)
* | Run cargo-fmt on the h7 examples.Bob McWhirter2021-08-033-36/+27
| |
* | Enhance Rcc configuration to be more fluentish.Bob McWhirter2021-08-036-209/+73
|/ | | | Clean up H7 examples to remove all vegan HALs and PACs.
* Mark `new`s as unsafe due to not being leak-safe.Dario Nieuwenhuis2021-08-021-4/+6
|
* hal-common: remove Pin in PeripheralMutexDario Nieuwenhuis2021-08-021-11/+7
|
* Make SPIv3 work with DMA.Bob McWhirter2021-07-232-0/+221
| | | | Add both DMA and non-DMA example to H7.
* stm32: No need to enable GPIO clocks manuallyTimo Kröger2021-07-235-56/+10
|
* Auto-enable all GPIOs during init().Bob McWhirter2021-07-231-12/+0
|
* Add a `Dbgmcu` struct capable of enabling all relevant DBGMCU.cr fields.Bob McWhirter2021-07-221-7/+4
| | | | | | | | | | | | | Includes the addition of a `dbgmcu!(...)` macro table which currently takes the form of (cr, $fn_name:ident) where `$fn_name` is something like `set_dbgsleep_d1` etc. The method is unsafe, since it's performing unsafe PAC operations. Two examples modified to demonstrate its usage.