diff options
| author | Dion Dokter <[email protected]> | 2025-11-22 01:47:54 +0100 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2025-11-22 01:47:54 +0100 |
| commit | 992ab2ec63d4ca41045d52f50be487a001023396 (patch) | |
| tree | 848a7a7dcf9a91be97bbd5b8742fdfafccf0a410 | |
| parent | 8c9a6521e813f7ab9cfe787bd46a583c8173bac2 (diff) | |
Add L0 family
| -rw-r--r-- | embassy-stm32/src/lcd.rs | 4 | ||||
| -rw-r--r-- | examples/stm32u0/src/bin/lcd.rs | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/embassy-stm32/src/lcd.rs b/embassy-stm32/src/lcd.rs index 66a9386b7..dc1989168 100644 --- a/embassy-stm32/src/lcd.rs +++ b/embassy-stm32/src/lcd.rs | |||
| @@ -8,10 +8,12 @@ use crate::peripherals; | |||
| 8 | use crate::rcc::{self, RccPeripheral}; | 8 | use crate::rcc::{self, RccPeripheral}; |
| 9 | use crate::time::Hertz; | 9 | use crate::time::Hertz; |
| 10 | 10 | ||
| 11 | #[cfg(stm32u0)] | 11 | #[cfg(any(stm32u0, stm32l073, stm32l083))] |
| 12 | const NUM_SEGMENTS: u8 = 52; | 12 | const NUM_SEGMENTS: u8 = 52; |
| 13 | #[cfg(stm32wb)] | 13 | #[cfg(stm32wb)] |
| 14 | const NUM_SEGMENTS: u8 = 44; | 14 | const NUM_SEGMENTS: u8 = 44; |
| 15 | #[cfg(any(stm32l053, stm32l063))] | ||
| 16 | const NUM_SEGMENTS: u8 = 32; | ||
| 15 | 17 | ||
| 16 | /// LCD configuration struct | 18 | /// LCD configuration struct |
| 17 | #[non_exhaustive] | 19 | #[non_exhaustive] |
diff --git a/examples/stm32u0/src/bin/lcd.rs b/examples/stm32u0/src/bin/lcd.rs index c3f489ea9..6e4378074 100644 --- a/examples/stm32u0/src/bin/lcd.rs +++ b/examples/stm32u0/src/bin/lcd.rs | |||
| @@ -3,11 +3,9 @@ | |||
| 3 | 3 | ||
| 4 | use defmt::*; | 4 | use defmt::*; |
| 5 | use embassy_executor::Spawner; | 5 | use embassy_executor::Spawner; |
| 6 | use embassy_stm32::{ | 6 | use embassy_stm32::lcd::{Bias, Config, Duty, Lcd, LcdPin}; |
| 7 | lcd::{Bias, Config, Duty, Lcd, LcdPin}, | 7 | use embassy_stm32::peripherals::LCD; |
| 8 | peripherals::LCD, | 8 | use embassy_stm32::time::Hertz; |
| 9 | time::Hertz, | ||
| 10 | }; | ||
| 11 | use embassy_time::Duration; | 9 | use embassy_time::Duration; |
| 12 | use {defmt_rtt as _, panic_probe as _}; | 10 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | 11 | ||
