boardloader: remove micropython related code that enables debug features to get clock cycle counts (#58)

This commit is contained in:
mcudev 2017-10-17 12:29:51 -04:00 committed by Pavol Rusnak
parent e10d40f846
commit 73897c1147
1 changed files with 0 additions and 5 deletions

View File

@ -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
}