Skip to content

Commit 2e8f1ba

Browse files
authored
Merge pull request #786 from tegimeki/add-dsi
dsi: add support for DSI host peripheral
2 parents 269401c + dddb770 commit 2e8f1ba

File tree

8 files changed

+707
-3
lines changed

8 files changed

+707
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Added
1111

12+
- Port `dsihost` implementation from stm32h7xx-hal [#786]
1213
- I2C 10-bit address support for I2c [#772] [#783]
1314
- `i2c_scanner` example [#758]
1415
- Enable `sdio` for stm32f446

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ synopsys-usb-otg = { version = "0.4.0", features = [
3838
], optional = true }
3939
sdio-host = { version = "0.9.0", optional = true }
4040
embedded-dma = "0.2.0"
41+
embedded-display-controller = { version = "^0.2.0", optional = true }
4142
bare-metal = { version = "1" }
4243
void = { default-features = false, version = "1.0.2" }
4344
display-interface = { version = "0.5.0", optional = true }
@@ -501,7 +502,7 @@ dcmi = []
501502
dfsdm1 = ["dfsdm"]
502503
dfsdm2 = ["dfsdm"]
503504
dma2d = []
504-
dsihost = []
505+
dsihost = ["embedded-display-controller"]
505506
eth = []
506507
fmc = []
507508
fsmc = []

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ single model.
5656
* `usb_fs` or `usb_hs` — USB OTG FS/HS peripheral support. See [synopsys-usb-otg](https://crates.io/crates/synopsys-usb-otg).
5757
* `fsmc_lcd` — LCD support via FMC/FSMC peripheral. See [display-interface](https://crates.io/crates/display-interface).
5858
* `sdio-host` — SDIO peripheral support. See [sdio-host](https://crates.io/crates/sdio-host).
59+
* `dsihost` — DSI host support. See [embedded-display-controller](https://crates.io/crates/embedded-display-controller).
5960

6061
Collaboration on this crate is highly welcome as are pull requests!
6162

examples/ltdc-screen/screen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl<T: 'static + SupportedWord> Stm32F7DiscoDisplay<T> {
3535
let controller = DisplayController::new(
3636
ltdc,
3737
dma2d,
38-
pins,
38+
Some(pins),
3939
PixelFormat::RGB565,
4040
DISCO_SCREEN_CONFIG,
4141
Some(25.MHz()),

0 commit comments

Comments
 (0)