diff options
Diffstat (limited to 'examples/stm32f469/src/bin/dsi_bsp.rs')
| -rw-r--r-- | examples/stm32f469/src/bin/dsi_bsp.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/stm32f469/src/bin/dsi_bsp.rs b/examples/stm32f469/src/bin/dsi_bsp.rs index e4e9e9c01..3a24d5dcf 100644 --- a/examples/stm32f469/src/bin/dsi_bsp.rs +++ b/examples/stm32f469/src/bin/dsi_bsp.rs | |||
| @@ -363,20 +363,20 @@ async fn main(_spawner: Spawner) { | |||
| 363 | const _PCPOLARITY: bool = false; // LTDC_PCPOLARITY_IPC == 0 | 363 | const _PCPOLARITY: bool = false; // LTDC_PCPOLARITY_IPC == 0 |
| 364 | 364 | ||
| 365 | const LTDC_DE_POLARITY: Depol = if !DE_POLARITY { | 365 | const LTDC_DE_POLARITY: Depol = if !DE_POLARITY { |
| 366 | Depol::ACTIVELOW | 366 | Depol::ACTIVE_LOW |
| 367 | } else { | 367 | } else { |
| 368 | Depol::ACTIVEHIGH | 368 | Depol::ACTIVE_HIGH |
| 369 | }; | 369 | }; |
| 370 | const LTDC_VS_POLARITY: Vspol = if !VS_POLARITY { | 370 | const LTDC_VS_POLARITY: Vspol = if !VS_POLARITY { |
| 371 | Vspol::ACTIVEHIGH | 371 | Vspol::ACTIVE_HIGH |
| 372 | } else { | 372 | } else { |
| 373 | Vspol::ACTIVELOW | 373 | Vspol::ACTIVE_LOW |
| 374 | }; | 374 | }; |
| 375 | 375 | ||
| 376 | const LTDC_HS_POLARITY: Hspol = if !HS_POLARITY { | 376 | const LTDC_HS_POLARITY: Hspol = if !HS_POLARITY { |
| 377 | Hspol::ACTIVEHIGH | 377 | Hspol::ACTIVE_HIGH |
| 378 | } else { | 378 | } else { |
| 379 | Hspol::ACTIVELOW | 379 | Hspol::ACTIVE_LOW |
| 380 | }; | 380 | }; |
| 381 | 381 | ||
| 382 | /* Timing Configuration */ | 382 | /* Timing Configuration */ |
| @@ -397,7 +397,7 @@ async fn main(_spawner: Spawner) { | |||
| 397 | w.set_hspol(LTDC_HS_POLARITY); | 397 | w.set_hspol(LTDC_HS_POLARITY); |
| 398 | w.set_vspol(LTDC_VS_POLARITY); | 398 | w.set_vspol(LTDC_VS_POLARITY); |
| 399 | w.set_depol(LTDC_DE_POLARITY); | 399 | w.set_depol(LTDC_DE_POLARITY); |
| 400 | w.set_pcpol(Pcpol::RISINGEDGE); | 400 | w.set_pcpol(Pcpol::RISING_EDGE); |
| 401 | }); | 401 | }); |
| 402 | 402 | ||
| 403 | // Set Synchronization size | 403 | // Set Synchronization size |
