Skip to content

Commit 6f84d7d

Browse files
ioannisgMaureenHelm
authored andcommitted
arch: arm: cortex_m: conditionally select ARCH_HAS_TIMING_FUNCTIONS
Cortex-M SoCs implement (optionally) the Data Watchpoint and Tracing Unit (DWT), which can be used for timing functions. Select the corresponding ARCH capability if the SoC implements the DWT. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 01bcd0d commit 6f84d7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/core/aarch32/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ config CPU_CORTEX_M
1818
select ARCH_HAS_NESTED_EXCEPTION_DETECTION
1919
select SWAP_NONATOMIC
2020
select ARCH_HAS_EXTRA_EXCEPTION_INFO
21+
select ARCH_HAS_TIMING_FUNCTIONS if CPU_CORTEX_M_HAS_DWT
2122
imply XIP
2223
help
2324
This option signifies the use of a CPU of the Cortex-M family.

0 commit comments

Comments
 (0)