tcp_client: rm extra clk
This commit is contained in:
parent
eaaee84fbc
commit
d6a05a7579
|
@ -84,16 +84,14 @@ fn main() -> ! {
|
||||||
let ccdr = rcc
|
let ccdr = rcc
|
||||||
.use_hse(8.mhz())
|
.use_hse(8.mhz())
|
||||||
.sysclk(400.mhz())
|
.sysclk(400.mhz())
|
||||||
.hclk(200.mhz())
|
// .hclk(200.mhz())
|
||||||
.per_ck(100.mhz())
|
// .per_ck(100.mhz())
|
||||||
.pll1_q_ck(48.mhz()) // for SPI
|
.pll1_q_ck(48.mhz()) // for SPI
|
||||||
.pll1_r_ck(400.mhz()) // for TRACECK
|
.pll1_r_ck(400.mhz()) // for TRACECK
|
||||||
.pll2_p_ck(100.mhz())
|
// .pll2_p_ck(100.mhz())
|
||||||
.pll2_q_ck(100.mhz())
|
// .pll2_q_ck(100.mhz())
|
||||||
.freeze(vos, &dp.SYSCFG);
|
.freeze(vos, &dp.SYSCFG);
|
||||||
|
|
||||||
// info!("{}", ccdr.clocks.c_ck().0);
|
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
logger::enable_itm(&dp.DBGMCU, &mut cp.DCB, &mut cp.ITM);
|
logger::enable_itm(&dp.DBGMCU, &mut cp.DCB, &mut cp.ITM);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ pub unsafe fn enable_itm(
|
||||||
*(0x5c00_4fb0 as *mut u32) = 0xC5ACCE55;
|
*(0x5c00_4fb0 as *mut u32) = 0xC5ACCE55;
|
||||||
|
|
||||||
// SWO CODR Register: Set SWO speed
|
// SWO CODR Register: Set SWO speed
|
||||||
*(0x5c00_3010 as *mut _) = 200;
|
*(0x5c00_3010 as *mut _) = 199;
|
||||||
|
|
||||||
// SWO SPPR Register:
|
// SWO SPPR Register:
|
||||||
// 1 = Manchester
|
// 1 = Manchester
|
||||||
|
|
Loading…
Reference in New Issue