ci: fix tests
This commit is contained in:
parent
feaeee1e83
commit
0dcb34fc7d
@ -12,13 +12,15 @@ use defmt::assert;
|
|||||||
use embassy_executor::Spawner;
|
use embassy_executor::Spawner;
|
||||||
use embassy_stm32::rcc::RtcClockSource;
|
use embassy_stm32::rcc::RtcClockSource;
|
||||||
use embassy_stm32::rtc::{Rtc, RtcConfig};
|
use embassy_stm32::rtc::{Rtc, RtcConfig};
|
||||||
|
use embassy_stm32::time::Hertz;
|
||||||
use embassy_time::{Duration, Timer};
|
use embassy_time::{Duration, Timer};
|
||||||
|
|
||||||
#[embassy_executor::main]
|
#[embassy_executor::main]
|
||||||
async fn main(_spawner: Spawner) {
|
async fn main(_spawner: Spawner) {
|
||||||
let mut config = config();
|
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);
|
let p = embassy_stm32::init(config);
|
||||||
info!("Hello World!");
|
info!("Hello World!");
|
||||||
|
@ -13,6 +13,7 @@ use embassy_executor::Spawner;
|
|||||||
use embassy_stm32::low_power::{stop_with_rtc, Executor};
|
use embassy_stm32::low_power::{stop_with_rtc, Executor};
|
||||||
use embassy_stm32::rcc::RtcClockSource;
|
use embassy_stm32::rcc::RtcClockSource;
|
||||||
use embassy_stm32::rtc::{Rtc, RtcConfig};
|
use embassy_stm32::rtc::{Rtc, RtcConfig};
|
||||||
|
use embassy_stm32::time::Hertz;
|
||||||
use embassy_time::{Duration, Timer};
|
use embassy_time::{Duration, Timer};
|
||||||
use static_cell::make_static;
|
use static_cell::make_static;
|
||||||
|
|
||||||
@ -28,7 +29,8 @@ fn main() -> ! {
|
|||||||
async fn async_main(_spawner: Spawner) {
|
async fn async_main(_spawner: Spawner) {
|
||||||
let mut config = config();
|
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);
|
let p = embassy_stm32::init(config);
|
||||||
info!("Hello World!");
|
info!("Hello World!");
|
||||||
|
Loading…
Reference in New Issue
Block a user