mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-10-02 14:44:51 +00:00
Fix the build for ESP IDF 4.4.X
This commit is contained in:
parent
b9d0ffd502
commit
d12abc976a
@ -437,7 +437,13 @@ impl<'d> SpiDriver<'d> {
|
|||||||
sdi: Option<impl Peripheral<P = crate::gpio::Gpio8> + 'd>,
|
sdi: Option<impl Peripheral<P = crate::gpio::Gpio8> + 'd>,
|
||||||
config: &config::DriverConfig,
|
config: &config::DriverConfig,
|
||||||
) -> Result<Self, EspError> {
|
) -> Result<Self, EspError> {
|
||||||
let max_transfer_size = Self::new_internal(SPI1::device(), Some(sclk), sdo, sdi, config)?;
|
let max_transfer_size = Self::new_internal(
|
||||||
|
SPI1::device(),
|
||||||
|
Some(sclk.into_ref().pin()),
|
||||||
|
sdo.into_ref().pin(),
|
||||||
|
sdi.map(|p| p.into_ref().pin()),
|
||||||
|
config,
|
||||||
|
)?;
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
host: SPI1::device() as _,
|
host: SPI1::device() as _,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user