Skip to content

Commit 34841e4

Browse files
committed
dsi: add to ci; dsi is only available on rm0399 parts
1 parent c90484c commit 34841e4

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- stm32h7b0
3434
- stm32h735
3535
env: # Peripheral Feature flags
36-
FLAGS: rt,xspi,sdmmc,sdmmc-fatfs,fmc,usb_hs,rtc,ethernet,ltdc,crc,rand,can,defmt
36+
FLAGS: rt,xspi,sdmmc,sdmmc-fatfs,fmc,usb_hs,rtc,ethernet,ltdc,crc,rand,can,dsi,defmt
3737

3838
steps:
3939
- uses: actions/checkout@v4

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- log-semihost
2020
- log-rtt
2121
env: # Peripheral Feature flags
22-
FLAGS: rt,xspi,sdmmc,sdmmc-fatfs,fmc,usb_hs,rtc,ethernet,ltdc,crc,rand,can
22+
FLAGS: rt,xspi,sdmmc,sdmmc-fatfs,fmc,usb_hs,rtc,ethernet,ltdc,crc,rand,can,dsi
2323

2424
steps:
2525
- uses: actions/checkout@v4

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ required-features = ["can"]
165165
name = "crc"
166166
required-features = ["crc"]
167167

168+
[[example]]
169+
name = "display-dsi-video-stm32h747i-disco"
170+
required-features = ["dsi", "ltdc", "fmc", "rtc", "rm0399"]
171+
172+
[[example]]
173+
name = "display-dsi-video-teartest-stm32h747i-disco"
174+
required-features = ["dsi", "ltdc", "fmc", "rm0399"]
175+
176+
[[example]]
177+
name = "display-dsi-command-teartest-stm32h747i-disco"
178+
required-features = ["dsi", "ltdc", "fmc", "rm0399"]
179+
168180
[[example]]
169181
name = "embedded-graphics"
170182
required-features = ["ltdc", "xspi", "rm0468"]
@@ -264,15 +276,3 @@ required-features = ["rt", "usb_hs", "rm0433"]
264276
[[example]]
265277
name = "vos0"
266278
required-features = ["revision_v"]
267-
268-
[[example]]
269-
name = "display-dsi-video-stm32h747i-disco"
270-
required-features = ["dsi", "ltdc", "fmc", "rtc"]
271-
272-
[[example]]
273-
name = "display-dsi-video-teartest-stm32h747i-disco"
274-
required-features = ["dsi", "ltdc", "fmc"]
275-
276-
[[example]]
277-
name = "display-dsi-command-teartest-stm32h747i-disco"
278-
required-features = ["dsi", "ltdc", "fmc"]

src/dsi.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//! Display Serial Interface
2+
//!
3+
//! Interface with MIPI D-PHY
4+
15
use crate::rcc::CoreClocks;
26
use crate::{
37
device::DSIHOST,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub mod dac;
156156
pub mod delay;
157157
#[cfg(feature = "device-selected")]
158158
pub mod dma;
159-
#[cfg(feature = "dsi")]
159+
#[cfg(all(feature = "device-selected", feature = "dsi", feature = "rm0399"))]
160160
pub mod dsi;
161161
#[cfg(all(
162162
feature = "device-selected",

src/rcc/rec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ peripheral_reset_and_enable_control! {
698698
#[cfg(all())]
699699
APB3, "Advanced Peripheral Bus 3 (APB3) peripherals" => [
700700
Ltdc [fixed clk: "pll3_r_ck"],
701-
#[cfg(any(feature = "dsi"))] Dsi
701+
#[cfg(any(feature = "rm0399"))] Dsi
702702
];
703703

704704

0 commit comments

Comments
 (0)