From d6a05a757957fb1de754c815da18d46139c6dd88 Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 10 Sep 2020 17:15:29 +0800 Subject: [PATCH] tcp_client: rm extra clk --- examples/tcp_client.rs | 10 ++++------ examples/util/logger.rs | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/tcp_client.rs b/examples/tcp_client.rs index 54c3340..adce952 100644 --- a/examples/tcp_client.rs +++ b/examples/tcp_client.rs @@ -84,15 +84,13 @@ 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); diff --git a/examples/util/logger.rs b/examples/util/logger.rs index c6ab530..356b4de 100644 --- a/examples/util/logger.rs +++ b/examples/util/logger.rs @@ -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