diff options
| author | Dion Dokter <[email protected]> | 2025-11-22 00:40:29 +0100 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2025-11-22 00:40:29 +0100 |
| commit | 11a5cd2c753fc39ec9fcf22c805ed7769ed6e0ec (patch) | |
| tree | 84f004161637b0a4178e3001bb3b62545a991db7 | |
| parent | 1479fbbee76b52e04bf658244fc535e462e17637 (diff) | |
fmt + clippy + changelog
| -rw-r--r-- | embassy-stm32/CHANGELOG.md | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/lib.rs | 2 | ||||
| -rw-r--r-- | examples/stm32u0/src/bin/lcd.rs | 6 |
3 files changed, 8 insertions, 1 deletions
diff --git a/embassy-stm32/CHANGELOG.md b/embassy-stm32/CHANGELOG.md index d2f675dbc..055a54c07 100644 --- a/embassy-stm32/CHANGELOG.md +++ b/embassy-stm32/CHANGELOG.md | |||
| @@ -71,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
| 71 | - fix: fixing channel numbers on vbat and vddcore for adc on adc | 71 | - fix: fixing channel numbers on vbat and vddcore for adc on adc |
| 72 | - adc: adding disable to vbat | 72 | - adc: adding disable to vbat |
| 73 | - feat: stm32/flash: add async support for h7 family | 73 | - feat: stm32/flash: add async support for h7 family |
| 74 | - feat: stm32/lcd: added implementation | ||
| 74 | 75 | ||
| 75 | ## 0.4.0 - 2025-08-26 | 76 | ## 0.4.0 - 2025-08-26 |
| 76 | 77 | ||
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 1f0449cf3..9e6ba1f34 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -227,7 +227,7 @@ macro_rules! bind_interrupts { | |||
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | // Reexports | 229 | // Reexports |
| 230 | pub use _generated::{peripherals, Peripherals}; | 230 | pub use _generated::{Peripherals, peripherals}; |
| 231 | pub use embassy_hal_internal::{Peri, PeripheralType}; | 231 | pub use embassy_hal_internal::{Peri, PeripheralType}; |
| 232 | #[cfg(feature = "unstable-pac")] | 232 | #[cfg(feature = "unstable-pac")] |
| 233 | pub use stm32_metapac as pac; | 233 | pub use stm32_metapac as pac; |
diff --git a/examples/stm32u0/src/bin/lcd.rs b/examples/stm32u0/src/bin/lcd.rs index 39db5c9c8..c3f489ea9 100644 --- a/examples/stm32u0/src/bin/lcd.rs +++ b/examples/stm32u0/src/bin/lcd.rs | |||
| @@ -351,6 +351,12 @@ impl DisplayBuffer { | |||
| 351 | } | 351 | } |
| 352 | } | 352 | } |
| 353 | 353 | ||
| 354 | impl Default for DisplayBuffer { | ||
| 355 | fn default() -> Self { | ||
| 356 | Self::new() | ||
| 357 | } | ||
| 358 | } | ||
| 359 | |||
| 354 | #[derive(Debug, Clone, Copy)] | 360 | #[derive(Debug, Clone, Copy)] |
| 355 | enum CharSegment { | 361 | enum CharSegment { |
| 356 | /// North | 362 | /// North |
