Fixed some CI issues

This commit is contained in:
David Haig 2024-12-11 11:35:16 +00:00 committed by Simon Hausmann
parent a541116c5f
commit f2eaa4b8ac
4 changed files with 4 additions and 17 deletions

View file

@ -2,7 +2,6 @@
name = "slint-generated"
version = "0.1.0"
edition = "2021"
rust-version = "1.79"
build = "build.rs"
readme = "README.md"
resolver = "2"

View file

@ -38,10 +38,7 @@ where
H: Hardware,
{
pub fn new(main_window: &'a MainWindow, hardware: H) -> Self {
Self {
main_window,
hardware,
}
Self { main_window, hardware }
}
pub async fn run(&mut self) {

View file

@ -17,12 +17,7 @@ impl DoubleBuffer {
buf1: &'static mut [TargetPixelType],
layer_config: LtdcLayerConfig,
) -> Self {
Self {
buf0,
buf1,
is_buf0: true,
layer_config,
}
Self { buf0, buf1, is_buf0: true, layer_config }
}
pub fn current(&mut self) -> &mut [TargetPixelType] {
@ -44,8 +39,7 @@ impl DoubleBuffer {
let buf = self.current();
let frame_buffer = buf.as_ptr();
self.is_buf0 = !self.is_buf0;
ltdc.set_buffer(self.layer_config.layer, frame_buffer as *const _)
.await
ltdc.set_buffer(self.layer_config.layer, frame_buffer as *const _).await
}
// Clears the buffer

View file

@ -6,10 +6,7 @@ use embassy_stm32::{rcc, Config, Peripherals};
pub fn stm32u5g9zj_init() -> Peripherals {
// setup power and clocks for an STM32U5G9J-DK2 run from an external 16 Mhz external oscillator
let mut config = Config::default();
config.rcc.hse = Some(rcc::Hse {
freq: Hertz(16_000_000),
mode: rcc::HseMode::Oscillator,
});
config.rcc.hse = Some(rcc::Hse { freq: Hertz(16_000_000), mode: rcc::HseMode::Oscillator });
config.rcc.pll1 = Some(rcc::Pll {
source: rcc::PllSource::HSE,
prediv: rcc::PllPreDiv::DIV1,