aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
authorDavid Haig <[email protected]>2024-06-28 18:17:17 +0100
committerDavid Haig <[email protected]>2024-06-28 18:17:17 +0100
commit6edf7b4688361e165c2ea9af03df9725a89a853e (patch)
treecf4246874ce4fe11ffe7798ba25407739958870f /embassy-stm32
parent79f00e54cc4d13a28c7ccc9a13345bf2f3730f42 (diff)
Applied formatting
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/src/ltdc.rs21
1 files changed, 11 insertions, 10 deletions
diff --git a/embassy-stm32/src/ltdc.rs b/embassy-stm32/src/ltdc.rs
index 564236d6f..4c5239971 100644
--- a/embassy-stm32/src/ltdc.rs
+++ b/embassy-stm32/src/ltdc.rs
@@ -2,18 +2,19 @@
2//! See ST application note AN4861: Introduction to LCD-TFT display controller (LTDC) on STM32 MCUs for high level details 2//! See ST application note AN4861: Introduction to LCD-TFT display controller (LTDC) on STM32 MCUs for high level details
3//! This module was tested against the stm32h735g-dk using the RM0468 ST reference manual for detailed register information 3//! This module was tested against the stm32h735g-dk using the RM0468 ST reference manual for detailed register information
4 4
5use crate::{ 5use core::future::poll_fn;
6 gpio::{AfType, OutputType, Speed}, 6use core::marker::PhantomData;
7 interrupt::{self, typelevel::Interrupt}, 7use core::task::Poll;
8 peripherals, rcc, Peripheral, 8
9};
10use core::{future::poll_fn, marker::PhantomData, task::Poll};
11use embassy_hal_internal::{into_ref, PeripheralRef}; 9use embassy_hal_internal::{into_ref, PeripheralRef};
12use embassy_sync::waitqueue::AtomicWaker; 10use embassy_sync::waitqueue::AtomicWaker;
13use stm32_metapac::ltdc::{ 11use stm32_metapac::ltdc::regs::Dccr;
14 regs::Dccr, 12use stm32_metapac::ltdc::vals::{Bf1, Bf2, Cfuif, Clif, Crrif, Cterrif, Pf, Vbr};
15 vals::{Bf1, Bf2, Cfuif, Clif, Crrif, Cterrif, Pf, Vbr}, 13
16}; 14use crate::gpio::{AfType, OutputType, Speed};
15use crate::interrupt::typelevel::Interrupt;
16use crate::interrupt::{self};
17use crate::{peripherals, rcc, Peripheral};
17 18
18static LTDC_WAKER: AtomicWaker = AtomicWaker::new(); 19static LTDC_WAKER: AtomicWaker = AtomicWaker::new();
19 20