mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-28 21:01:26 +00:00
Fix the build for ESP IDF 4.4.X
This commit is contained in:
parent
b532ea6a78
commit
6c06991062
@ -437,6 +437,8 @@ 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> {
|
||||||
|
use crate::gpio::Pin;
|
||||||
|
|
||||||
let max_transfer_size = Self::new_internal(
|
let max_transfer_size = Self::new_internal(
|
||||||
SPI1::device(),
|
SPI1::device(),
|
||||||
Some(sclk.into_ref().pin()),
|
Some(sclk.into_ref().pin()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user