arch: arm: cortex_m: Add CPU DWT feature symbol
This commit adds a Kconfig symbol for specifying whether the SoC implements the CPU DWT feature. The Data Watchpoint and Trace (DWT) is an optional debug unit for the Cortex-M family cores (except ARMv6-M; i.e. M0 and M0+) that provides watchpoints, data tracing and system profiling capabilities. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
5c9bfdfa0e
commit
c4e6bd2d7c
|
@ -70,6 +70,17 @@ config CPU_CORTEX_M_HAS_SYSTICK
|
|||
help
|
||||
This option is enabled when the CPU implements the SysTick timer.
|
||||
|
||||
config CPU_CORTEX_M_HAS_DWT
|
||||
bool
|
||||
depends on !CPU_CORTEX_M0 && !CPU_CORTEX_M0PLUS
|
||||
help
|
||||
This option signifies that the CPU implements the Data Watchpoint and
|
||||
Trace (DWT) unit specified by the ARMv7-M and above.
|
||||
|
||||
While ARMv6-M does define a "DWT" unit, this is significantly different
|
||||
from the DWT specified by the ARMv7-M and above in terms of both feature
|
||||
set and register mappings.
|
||||
|
||||
config CPU_CORTEX_M_HAS_BASEPRI
|
||||
bool
|
||||
depends on ARMV7_M_ARMV8_M_MAINLINE
|
||||
|
|
Loading…
Reference in a new issue