Commit Graph

88 Commits

Author SHA1 Message Date
3811c0a401 Add adapter for implementing async traits for blocking types
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.
2021-12-17 12:54:51 +01:00
01e5376b25 Merge #456
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 <lulf@redhat.com>
2021-10-26 11:59:14 +00:00
e55726964d Fix clock setup for MSI and PLL to allow RNG opereation
Add RNG example using PLL as clock source.
2021-10-26 13:45:53 +02:00
f8ebc967a9 Add implementation of async trait for STM32 I2C v2
* Add DMA read implementation for I2C v2
* Add example using DMA for I2C
2021-10-21 12:30:02 +02:00
9e461b771a Add i2c example for L4 2021-10-20 10:11:34 +02:00
de016e8456 Remove trait_alias, allow(incomplete_features).
trait_alias seems unused. no idea why it's there.
2021-09-03 17:00:58 +02:00
2c992f7010 stm32: move dbgmcu stuff to toplevel config setting, defaulting to true. 2021-08-19 23:50:19 +02:00
f4950c4449 examples: Consistently use unwrap! in favor of .unwrap()
Unfortunately errors from `embedded_graphics` and `core` doesn't provide
the necessary instances currently.
2021-08-05 22:39:59 +02:00
0ea6a2d890 time: replace dyn clock/alarm with a global Driver trait 2021-08-05 19:14:09 +02:00
07d4b196f7 Update nightly, remove removed features. 2021-08-04 19:48:14 +02:00
0d02342b2d Rename bread -> read_blocking 2021-08-04 08:34:30 +02:00
6ff0614cb6 Add uart::Read DMA-based implementation
* Rename existing read() to bread() (blocking)
2021-08-03 15:31:24 +02:00
4ccac69929 stm32l4: Cleanup examples
* Use `cortex_m_rt::entry` for sync examples
* Use `Dbgmcu::enable_all()` everywhere
2021-07-29 15:54:11 +02:00
5b0ae5c25b stm32/examples: cleanup L4 2021-07-24 13:57:11 +02:00
06fb2a7a80 Enable SYSCFG clock in exti::init() 2021-07-24 11:13:49 +02:00
34dfe28d3a FFS warnings about unused Result<>. 2021-07-23 13:22:39 -04:00
053e330375 Fix warnings about un-used variables. 2021-07-23 13:22:39 -04:00
e269971597 Fix extraneous mut warnings in L4 example. 2021-07-23 13:22:39 -04:00
bee7f60f08 Improve the SPIv2 DMA example to verify it actually works. 2021-07-23 13:22:39 -04:00
0d2051243e SPIv2 + DMA. 2021-07-23 13:22:39 -04:00
5ac91933ff stm32: No need to enable GPIO clocks manually 2021-07-23 17:54:13 +02:00
d7176da37c stm32/examples: update DMA channel names 2021-07-17 08:04:33 +02:00
3d1391ef2d stm32/dma: impl all variants 2021-07-16 14:41:20 -04:00
71c8d7aa7d stm32l4/examples: remove old-pac uses. 2021-07-15 00:37:00 +02:00
21e94972dc Fix more warnings and examples. 2021-07-14 14:55:20 -04:00
a88f0028ef First shot at async dma usart for stm32. 2021-07-14 14:14:14 -04:00
f01ddd5f5c Mix dmamux into bdma_v1. 2021-07-13 10:09:35 -04:00
043f0ea508 Checkpoint DMAMUX channel setup. 2021-07-13 10:08:43 -04:00
ecc151d4e2 stm32/adc: simplify delay handling 2021-07-05 03:18:23 +02:00
25d4b2ea26 fix stm32 warnings 2021-07-05 01:54:29 +02:00
54ada5bae1 Stub in the DMA bits that aren't yet there. 2021-07-01 11:30:54 -04:00
f83559c6ab Add L4+ example for USART. 2021-07-01 11:30:54 -04:00
0eaadfc125 stm32: Update gpio examples 2021-06-25 18:16:43 -03:00
d58fb11b2e ADCv3 and example. 2021-06-14 13:20:42 -04:00
95532726b2 Add minimal RCC impls for L4 and F4 2021-06-14 11:33:11 +02:00
ecd53c916c Small changes to support DAC example. 2021-06-08 14:04:56 -04:00
cf3c021c37 Initial examples for STM32L4+ 2021-06-08 10:37:11 -04:00
b8690e5f5d Add blinky example. 2021-06-08 10:37:11 -04:00