Remove comments, add some comments, minor fixes to dsihost.rs
This commit is contained in:
parent
bcbb486311
commit
9005d26fca
3 changed files with 1618 additions and 0 deletions
|
@ -193,6 +193,7 @@ impl<'d, T: Instance> DsiHost<'d, T> {
|
|||
// data[0] and [1] have to exist if long_write is called.
|
||||
w.set_data3(data[1]);
|
||||
w.set_data2(data[0]);
|
||||
|
||||
// DCS Code
|
||||
w.set_data1(dcs_code);
|
||||
});
|
||||
|
@ -301,6 +302,15 @@ impl<'d, T: Instance> DsiHost<'d, T> {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
// Used this to check whether there are read errors. Does not seem like it.
|
||||
if !self.read_busy() {
|
||||
defmt::debug!("Read not busy!");
|
||||
if self.packet_size_error() {
|
||||
return Err(Error::ReadError);
|
||||
}
|
||||
}
|
||||
*/
|
||||
Ok(())
|
||||
}
|
||||
fn wait_command_fifo_empty(&self) -> Result<(), Error> {
|
||||
|
|
|
@ -53,6 +53,7 @@ impl<'d, T: Instance> Ltdc<'d, T> {
|
|||
.dckcfgr1()
|
||||
.modify(|w| w.set_pllsaidivr(stm32_metapac::rcc::vals::Pllsaidivr::DIV2));
|
||||
|
||||
// It is set to RCC_PLLSAIDIVR_2 in ST's BSP example for the STM32469I-DISCO.
|
||||
#[cfg(not(any(stm32f7, stm32u5)))]
|
||||
stm32_metapac::RCC
|
||||
.dckcfgr()
|
||||
|
|
1607
examples/stm32f4/src/bin/dsi_bsp.rs
Normal file
1607
examples/stm32f4/src/bin/dsi_bsp.rs
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue