Move compile test to the STM32F334 example.
This commit is contained in:
parent
2ee9b37373
commit
9505695830
2 changed files with 2 additions and 3 deletions
|
@ -17,9 +17,7 @@ bind_interrupts!(struct Irqs {
|
|||
|
||||
#[embassy_executor::main]
|
||||
async fn main(_spawner: Spawner) {
|
||||
let mut init_config = embassy_stm32::Config::default();
|
||||
init_config.rcc.cfgr3.usart1sw = Some(embassy_stm32::pac::rcc::vals::Usart1sw::HSI);
|
||||
let p = embassy_stm32::init(init_config);
|
||||
let p = embassy_stm32::init(Default::default());
|
||||
info!("Hello World!");
|
||||
|
||||
let config = Config::default();
|
||||
|
|
|
@ -28,6 +28,7 @@ async fn main(_spawner: Spawner) {
|
|||
config.rcc.apb1_pre = APBPrescaler::DIV2;
|
||||
config.rcc.apb2_pre = APBPrescaler::DIV1;
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue