David-OConnor / stm32-hal

This library provides access to STM32 peripherals in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DmaPeriph stm32f4

gfabiano opened this issue · comments

On stm32f4 when compile with embedded-hal feature i receive this kind of error below:

error[E0405]: cannot find trait `DmaPeriph` in this scope
   --> stm32-hal/src/spi.rs:734:51
    |
734 |     R: Deref<Target = pac::spi1::RegisterBlock> + DmaPeriph + RccPeriph,
    |                                                   ^^^^^^^^^ help: a trait with a similar name exists: `RccPeriph`
    |
   ::: stm32-hal/src/util.rs:226:1
    |
226 | pub trait RccPeriph {
    | ------------------- similarly named trait `RccPeriph` defined here

error[E0405]: cannot find trait `DmaPeriph` in this scope
   --> stm32-hal/src/spi.rs:750:51
    |
750 |     R: Deref<Target = pac::spi1::RegisterBlock> + DmaPeriph + RccPeriph
    |                                                   ^^^^^^^^^ help: a trait with a similar name exists: `RccPeriph`

Fixed in latest commit and release. Good find!