stm32: move dbgmcu stuff to toplevel config setting, defaulting to true.
This commit is contained in:
@ -19,7 +19,6 @@ use embassy_macros::interrupt_take;
|
||||
use embassy_net::{
|
||||
Config as NetConfig, Ipv4Address, Ipv4Cidr, StackResources, StaticConfigurator, TcpSocket,
|
||||
};
|
||||
use embassy_stm32::dbgmcu::Dbgmcu;
|
||||
use embassy_stm32::eth::lan8742a::LAN8742A;
|
||||
use embassy_stm32::eth::{Ethernet, State};
|
||||
use embassy_stm32::rng::Random;
|
||||
@ -96,10 +95,6 @@ fn main() -> ! {
|
||||
|
||||
info!("Setup RCC...");
|
||||
|
||||
unsafe {
|
||||
Dbgmcu::enable_all();
|
||||
}
|
||||
|
||||
let p = embassy_stm32::init(config());
|
||||
|
||||
let rng = Random::new(p.RNG);
|
||||
|
Reference in New Issue
Block a user