Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions arch/arm/core/cortex_m/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
*/
static inline uint64_t z_arm_dwt_freq_get(void)
{
#if defined(CONFIG_SOC_FAMILY_NORDIC_NRF) || \
defined(CONFIG_SOC_SERIES_IMXRT6XX)
#if defined(CONFIG_CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK)
/*
* DWT frequency is taken directly from the
* System Core clock (CPU) frequency, if the
Expand Down
5 changes: 5 additions & 0 deletions modules/cmsis/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ config CMSIS_M_CHECK_DEVICE_DEFINES
help
This options enables the validation of CMSIS configuration flags.

config CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK
bool
help
Enable this option if CMSIS SystemCoreClock symbols is available.

endif
1 change: 1 addition & 0 deletions soc/nordic/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
config SOC_FAMILY_NORDIC_NRF
select SOC_COMPATIBLE_NRF
select SOC_RESET_HOOK if ARM
select CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK if ARM

if SOC_FAMILY_NORDIC_NRF

Expand Down
4 changes: 4 additions & 0 deletions soc/nxp/imxrt/imxrt6xx/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

if SOC_SERIES_IMXRT6XX

config CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK
bool
default y

# alias for hal
config SOC_SERIES_IMX_RT6XX
bool
Expand Down
Loading