From 8d87c1810e2624e2113a61fe3aa19fd915004aeb Mon Sep 17 00:00:00 2001 From: silabs-ChatNguyen Date: Tue, 25 Jul 2023 13:25:02 +0700 Subject: [PATCH] Change system clock to 78Mhz --- ports/silabs/circuitpython_efr32.slcp | 1 + ports/silabs/common-hal/microcontroller/Processor.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/silabs/circuitpython_efr32.slcp b/ports/silabs/circuitpython_efr32.slcp index d645f2b1ed..17c8118501 100644 --- a/ports/silabs/circuitpython_efr32.slcp +++ b/ports/silabs/circuitpython_efr32.slcp @@ -19,6 +19,7 @@ sdk_extension: - id: cp_efr32 version: 1.0.0 component: +- {id: device_init_dpll} - {id: bluetooth_feature_nvm} - {id: bluetooth_feature_gatt_server} - {id: bluetooth_feature_sm} diff --git a/ports/silabs/common-hal/microcontroller/Processor.c b/ports/silabs/common-hal/microcontroller/Processor.c index 841f3ba35f..12cf5ca809 100644 --- a/ports/silabs/common-hal/microcontroller/Processor.c +++ b/ports/silabs/common-hal/microcontroller/Processor.c @@ -50,7 +50,7 @@ float common_hal_mcu_processor_get_voltage(void) { } uint32_t common_hal_mcu_processor_get_frequency(void) { - return CMU_ClockFreqGet(cmuClock_HCLK); + return CMU_ClockFreqGet(cmuClock_SYSCLK); } void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {