mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-15 09:50:57 +00:00
boardloader: remove micropython related code that enables debug features to get clock cycle counts (#58)
This commit is contained in:
parent
e10d40f846
commit
73897c1147
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user