mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Move compile test to the STM32F334 example.
This commit is contained in:
parent
2ee9b37373
commit
9505695830
@ -17,9 +17,7 @@ bind_interrupts!(struct Irqs {
|
|||||||
|
|
||||||
#[embassy_executor::main]
|
#[embassy_executor::main]
|
||||||
async fn main(_spawner: Spawner) {
|
async fn main(_spawner: Spawner) {
|
||||||
let mut init_config = embassy_stm32::Config::default();
|
let p = embassy_stm32::init(Default::default());
|
||||||
init_config.rcc.cfgr3.usart1sw = Some(embassy_stm32::pac::rcc::vals::Usart1sw::HSI);
|
|
||||||
let p = embassy_stm32::init(init_config);
|
|
||||||
info!("Hello World!");
|
info!("Hello World!");
|
||||||
|
|
||||||
let config = Config::default();
|
let config = Config::default();
|
||||||
|
@ -28,6 +28,7 @@ async fn main(_spawner: Spawner) {
|
|||||||
config.rcc.apb1_pre = APBPrescaler::DIV2;
|
config.rcc.apb1_pre = APBPrescaler::DIV2;
|
||||||
config.rcc.apb2_pre = APBPrescaler::DIV1;
|
config.rcc.apb2_pre = APBPrescaler::DIV1;
|
||||||
config.rcc.hrtim = HrtimClockSource::PllClk;
|
config.rcc.hrtim = HrtimClockSource::PllClk;
|
||||||
|
config.rcc.mux.hrtim1sw = Some(embassy_stm32::pac::rcc::vals::Timsw::PLL1_P); // TODO: The two lines here do the same thing
|
||||||
}
|
}
|
||||||
let p = embassy_stm32::init(config);
|
let p = embassy_stm32::init(config);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user