From 73897c11477db348c97bbb4135698158d1459f76 Mon Sep 17 00:00:00 2001 From: mcudev <29890609+mcudev@users.noreply.github.com> Date: Tue, 17 Oct 2017 12:29:51 -0400 Subject: [PATCH] boardloader: remove micropython related code that enables debug features to get clock cycle counts (#58) --- embed/boardloader/lowlevel.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/embed/boardloader/lowlevel.c b/embed/boardloader/lowlevel.c index 785bfd7b..c8e44670 100644 --- a/embed/boardloader/lowlevel.c +++ b/embed/boardloader/lowlevel.c @@ -62,9 +62,4 @@ void periph_init(void) // Clear the reset flags PWR->CR |= PWR_CR_CSBF; RCC->CSR |= RCC_CSR_RMVF; - - // Enable CPU ticks - CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; // Enable DWT - DWT->CYCCNT = 0; // Reset Cycle Count Register - DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; // Enable Cycle Count Register }