mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-27 12:21:02 +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>,
|
||||
config: &config::DriverConfig,
|
||||
) -> Result<Self, EspError> {
|
||||
use crate::gpio::Pin;
|
||||
|
||||
let max_transfer_size = Self::new_internal(
|
||||
SPI1::device(),
|
||||
Some(sclk.into_ref().pin()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user