Skip to content

Commit

Permalink
Rework LCD_CAM
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 30, 2024
1 parent a8c36fb commit 58034a8
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 225 deletions.
9 changes: 4 additions & 5 deletions esp-hal/src/lcd_cam/cam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ use crate::{
OutputSignal,
Pull,
},
lcd_cam::{cam::private::RxPins, private::calculate_clkm, BitOrder, ByteOrder},
lcd_cam::{calculate_clkm, BitOrder, ByteOrder},
peripheral::{Peripheral, PeripheralRef},
peripherals::LCD_CAM,
};
Expand Down Expand Up @@ -604,8 +604,7 @@ impl RxPins for RxSixteenBits {
const BUS_WIDTH: usize = 2;
}

mod private {
pub trait RxPins {
const BUS_WIDTH: usize;
}
#[doc(hidden)]
pub trait RxPins {
const BUS_WIDTH: usize;
}
14 changes: 7 additions & 7 deletions esp-hal/src/lcd_cam/lcd/i8080.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ use crate::{
OutputSignal,
},
lcd_cam::{
asynch::LCD_DONE_WAKER,
lcd::{i8080::private::TxPins, ClockMode, DelayMode, Phase, Polarity},
private::{calculate_clkm, Instance},
calculate_clkm,
lcd::{ClockMode, DelayMode, Phase, Polarity},
BitOrder,
ByteOrder,
Instance,
Lcd,
LCD_DONE_WAKER,
},
peripheral::{Peripheral, PeripheralRef},
peripherals::LCD_CAM,
Expand Down Expand Up @@ -703,8 +704,7 @@ impl<'d> TxPins for TxSixteenBits<'d> {
}
}

mod private {
pub trait TxPins {
fn configure(&mut self);
}
#[doc(hidden)]
pub trait TxPins {
fn configure(&mut self);
}
Loading

0 comments on commit 58034a8

Please sign in to comment.