mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-28 18:52:16 +00:00
Fixed some CI issues
This commit is contained in:
parent
a541116c5f
commit
f2eaa4b8ac
4 changed files with 4 additions and 17 deletions
|
|
@ -2,7 +2,6 @@
|
||||||
name = "slint-generated"
|
name = "slint-generated"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.79"
|
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,7 @@ where
|
||||||
H: Hardware,
|
H: Hardware,
|
||||||
{
|
{
|
||||||
pub fn new(main_window: &'a MainWindow, hardware: H) -> Self {
|
pub fn new(main_window: &'a MainWindow, hardware: H) -> Self {
|
||||||
Self {
|
Self { main_window, hardware }
|
||||||
main_window,
|
|
||||||
hardware,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn run(&mut self) {
|
pub async fn run(&mut self) {
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,7 @@ impl DoubleBuffer {
|
||||||
buf1: &'static mut [TargetPixelType],
|
buf1: &'static mut [TargetPixelType],
|
||||||
layer_config: LtdcLayerConfig,
|
layer_config: LtdcLayerConfig,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self { buf0, buf1, is_buf0: true, layer_config }
|
||||||
buf0,
|
|
||||||
buf1,
|
|
||||||
is_buf0: true,
|
|
||||||
layer_config,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn current(&mut self) -> &mut [TargetPixelType] {
|
pub fn current(&mut self) -> &mut [TargetPixelType] {
|
||||||
|
|
@ -44,8 +39,7 @@ impl DoubleBuffer {
|
||||||
let buf = self.current();
|
let buf = self.current();
|
||||||
let frame_buffer = buf.as_ptr();
|
let frame_buffer = buf.as_ptr();
|
||||||
self.is_buf0 = !self.is_buf0;
|
self.is_buf0 = !self.is_buf0;
|
||||||
ltdc.set_buffer(self.layer_config.layer, frame_buffer as *const _)
|
ltdc.set_buffer(self.layer_config.layer, frame_buffer as *const _).await
|
||||||
.await
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clears the buffer
|
// Clears the buffer
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,7 @@ use embassy_stm32::{rcc, Config, Peripherals};
|
||||||
pub fn stm32u5g9zj_init() -> Peripherals {
|
pub fn stm32u5g9zj_init() -> Peripherals {
|
||||||
// setup power and clocks for an STM32U5G9J-DK2 run from an external 16 Mhz external oscillator
|
// setup power and clocks for an STM32U5G9J-DK2 run from an external 16 Mhz external oscillator
|
||||||
let mut config = Config::default();
|
let mut config = Config::default();
|
||||||
config.rcc.hse = Some(rcc::Hse {
|
config.rcc.hse = Some(rcc::Hse { freq: Hertz(16_000_000), mode: rcc::HseMode::Oscillator });
|
||||||
freq: Hertz(16_000_000),
|
|
||||||
mode: rcc::HseMode::Oscillator,
|
|
||||||
});
|
|
||||||
config.rcc.pll1 = Some(rcc::Pll {
|
config.rcc.pll1 = Some(rcc::Pll {
|
||||||
source: rcc::PllSource::HSE,
|
source: rcc::PllSource::HSE,
|
||||||
prediv: rcc::PllPreDiv::DIV1,
|
prediv: rcc::PllPreDiv::DIV1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue