tcp_client: rm extra clk

This commit is contained in:
occheung 2020-09-10 17:15:29 +08:00
parent eaaee84fbc
commit d6a05a7579
2 changed files with 5 additions and 7 deletions

View File

@ -84,16 +84,14 @@ fn main() -> ! {
let ccdr = rcc
.use_hse(8.mhz())
.sysclk(400.mhz())
.hclk(200.mhz())
.per_ck(100.mhz())
// .hclk(200.mhz())
// .per_ck(100.mhz())
.pll1_q_ck(48.mhz()) // for SPI
.pll1_r_ck(400.mhz()) // for TRACECK
.pll2_p_ck(100.mhz())
.pll2_q_ck(100.mhz())
// .pll2_p_ck(100.mhz())
// .pll2_q_ck(100.mhz())
.freeze(vos, &dp.SYSCFG);
// info!("{}", ccdr.clocks.c_ck().0);
unsafe {
logger::enable_itm(&dp.DBGMCU, &mut cp.DCB, &mut cp.ITM);
}

View File

@ -26,7 +26,7 @@ pub unsafe fn enable_itm(
*(0x5c00_4fb0 as *mut u32) = 0xC5ACCE55;
// SWO CODR Register: Set SWO speed
*(0x5c00_3010 as *mut _) = 200;
*(0x5c00_3010 as *mut _) = 199;
// SWO SPPR Register:
// 1 = Manchester