ci: fix tests

This commit is contained in:
xoviat 2023-09-17 19:03:45 -05:00
parent feaeee1e83
commit 0dcb34fc7d
2 changed files with 6 additions and 2 deletions

View File

@ -12,13 +12,15 @@ use defmt::assert;
use embassy_executor::Spawner;
use embassy_stm32::rcc::RtcClockSource;
use embassy_stm32::rtc::{Rtc, RtcConfig};
use embassy_stm32::time::Hertz;
use embassy_time::{Duration, Timer};
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
let mut config = config();
config.rcc.rtc = Some(RtcClockSource::LSI);
config.rcc.lse = Some(Hertz(32_768));
config.rcc.rtc = Some(RtcClockSource::LSE);
let p = embassy_stm32::init(config);
info!("Hello World!");

View File

@ -13,6 +13,7 @@ use embassy_executor::Spawner;
use embassy_stm32::low_power::{stop_with_rtc, Executor};
use embassy_stm32::rcc::RtcClockSource;
use embassy_stm32::rtc::{Rtc, RtcConfig};
use embassy_stm32::time::Hertz;
use embassy_time::{Duration, Timer};
use static_cell::make_static;
@ -28,7 +29,8 @@ fn main() -> ! {
async fn async_main(_spawner: Spawner) {
let mut config = config();
config.rcc.rtc = Some(RtcClockSource::LSI);
config.rcc.lse = Some(Hertz(32_768));
config.rcc.rtc = Some(RtcClockSource::LSE);
let p = embassy_stm32::init(config);
info!("Hello World!");