aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename StaticConfig to StaticConfigV4Ruben De Smet2023-06-062-2/+2
|
* Use make_static! from static-cell v1.1Dario Nieuwenhuis2023-06-012-26/+16
|
* Fix examplesRasmus Melchior Jacobsen2023-05-251-5/+5
|
* Let Flash<Async/Blocking> be a thingRasmus Melchior Jacobsen2023-05-251-1/+1
|
* Align with new bind_interruptRasmus Melchior Jacobsen2023-05-251-2/+2
|
* Align examplesRasmus Melchior Jacobsen2023-05-251-6/+6
|
* Align examplesRasmus Melchior Jacobsen2023-05-251-3/+2
|
* stm32: move to bind_interruptsxoviat2023-05-249-31/+56
| | | | disable lora functionality for now
* net: do not use smoltcp Instant/Duration in public API.Dario Nieuwenhuis2023-05-151-1/+1
|
* Fix some typosDirk Stolle2023-05-081-1/+1
|
* Align flash examplesRasmus Melchior Jacobsen2023-04-051-2/+2
|
* 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).
* net: allocate space for 2 sockets, needed for dhcp.Dario Nieuwenhuis2023-01-192-2/+2
|
* Add smoltcp dhcp socket configurationPaweł Jan Czochański2023-01-192-16/+6
|
* stm32 otg: add examples.chemicstry2023-01-111-0/+106
|
* stm32/eth_v2: update to new embassy-net trait, remove PeripheralMutex.Dario Nieuwenhuis2022-12-132-44/+42
|
* stm32: Fix watchdog division by zero for 256 prescaler, add watchdog example ↵Matous Hybl2022-11-101-0/+24
| | | | for H7
* Merge #1025bors[bot]2022-10-261-0/+44
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1025: Implement I2C timeouts, second attempt r=Dirbaio a=chemicstry This is an alterrnative to #1022 as discussed there. Timeouts are implemented using suggested `check_timeout: impl Fn() -> Result<(), Error>` function, which does not depend on `embassy-time` by default and is a noop for regular I2C. This also adds `time` feature like in `embassy-nrf` to enable `embassy-time` dependencies. While at it, I also gated some other peripherals that depend on `embassy-time`, notably `usb` and (partially) `subghz`. `TimeoutI2c` is currently only implemented for i2cv1, because i2cv2 has additional complications: - Async methods still use a lot of busy waiting code in between DMA transfers, so simple `with_timeout()` will not work and it will have to use both types of timeouts. It could probably be rewritten to replace busy waits with IRQs, but that's outside the scope of this PR. - I2C definition `I2c<'d, T, TXDMA, RXDMA>` is different from i2cv1 `I2c<'d, T>` making it hard to share single `TimeoutI2c` wrapper. A couple of options here: - Duplicate `TimeoutI2c` code - Add dummy `TXDMA`, `RXDMA` types to i2cv1 considering that in the future it should also support DMA Co-authored-by: chemicstry <[email protected]>
| * Add more docschemicstry2022-10-241-0/+3
| |
| * i2cv2 timeoutschemicstry2022-10-241-0/+41
| |
* | stm32: Add support for read_until_idle on UARTGuillaume MICHEL2022-10-263-3/+9
|/
* Remove flash lock/unlock public API from stm32 flash, and perform the ↵Mathias2022-09-301-1/+1
| | | | unlocking and locking automatically on erase and write operations
* Remove default, reorder generic paramsivmarkov2022-09-251-1/+2
|
* sync: flatten module structure.Dario Nieuwenhuis2022-08-222-2/+2
|
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-222-3/+3
|
* Remove Forever, switch to static_cell.Dario Nieuwenhuis2022-08-226-26/+26
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-1819-31/+31
|
* examples Remove the `fn config()` idiom.Dario Nieuwenhuis2022-08-1711-87/+45
| | | | | 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-1715-38/+46
|
* Merge #896bors[bot]2022-08-101-1/+10
|\ | | | | | | | | | | | | | | | | | | 896: Implement I2C pullup configuration r=lulf a=chemicstry I wasn't sure if I should put frequency into config struct, so left it separate as in SPI periph. Also added Copy derives to gpio types, not sure why they weren't? Co-authored-by: chemicstry <[email protected]>
| * Implement I2C pullup configurationchemicstry2022-08-091-1/+10
| |
* | Add example using embedded-nal-async traitsUlf Lilleengen2022-08-091-0/+125
|/
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-2918-59/+59
|
* Improve ADC configuration optionschemicstry2022-07-271-3/+3
|
* rename PwmPin::new_chX, update examples.Dario Nieuwenhuis2022-07-231-2/+3
|
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-8/+8
|
* Update embassy-stm32Dario Nieuwenhuis2022-07-232-11/+10
|
* embassy-stm32: Simplify timeGrant Miller2022-07-1010-59/+59
| | | | | | | | | | - Remove unused `MilliSeconds`, `MicroSeconds`, and `NanoSeconds` types - Remove `Bps`, `KiloHertz`, and `MegaHertz` types that were only used for converting to `Hertz` - Replace all instances of `impl Into<Hertz>` with `Hertz` - Add `hz`, `khz`, and `mhz` methods to `Hertz`, as well as free function shortcuts - Remove `U32Ext` extension trait
* Run rustfmt.Dario Nieuwenhuis2022-06-1219-130/+54
|
* Merge #806bors[bot]2022-06-121-1/+1
|\ | | | | | | | | | | | | | | | | | | 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 <[email protected]>
| * Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-1/+1
| | | | | | | | | | | | - 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`.
* | Rename channel to mpmchuntc2022-06-122-2/+2
|/ | | | 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.
* Add example for using a Signal.Dominic Clifton2022-06-061-0/+41
|
* WIP embassy-net v2Dario Nieuwenhuis2022-05-251-94/+87
|
* Merge #752bors[bot]2022-05-061-4/+3
|\ | | | | | | | | | | | | | | | | | | | | 752: Replace embassy::io with embedded_io. r=Dirbaio a=Dirbaio TODO: - [x] Release embedded-io on crates.io - [x] Remove git dep Co-authored-by: Dario Nieuwenhuis <[email protected]>
| * Replace embassy::io with embedded_io.Dario Nieuwenhuis2022-05-071-4/+3
| |
* | Add H7 flash and bootloader supportMatous Hybl2022-05-061-0/+58
|/
* embassy-stm32/eth: convert LAN8742 driver to generic SMI driverDavid Lenfesty2022-04-301-4/+4
| | | | | | | | SMI Ethernet PHYs all share a common base set of registers that can do 90% of all tasks. The LAN8742 driver used some vendor-specific registers to check link negotiation status, but the need for that was debatable, so I migrated it to a generic driver instead, anybody who wants extra functionality can copy it and impl their own on top of it.
* Add ADC support for H7Matous Hybl2022-04-121-0/+42
|