1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

trezorhal: enable CSS (Clock Security System)

This commit is contained in:
Pavol Rusnak 2017-09-28 19:33:18 +02:00
parent d33ce4a666
commit 11e223850f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -43,6 +43,9 @@ void periph_init(void) {
// Set the system clock to be HSE // Set the system clock to be HSE
SystemClock_Config(); SystemClock_Config();
// Enable CSS (Clock Security System)
HAL_RCC_EnableCSS();
// Enable GPIO clocks // Enable GPIO clocks
__HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE();