Skip to content

Commit ff8fca7

Browse files
committed
arch: arm: dwt: use the cmsis_6 macro unconditionally
Always use the cmsis_6 version for DWT_LSR_Present_Msk and DWT_LSR_Access_Msk, the old ones are not going to be available anymore when Cortex-M is selected.. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 33e1b86 commit ff8fca7

File tree

1 file changed

+3
-6
lines changed
  • arch/arm/include/cortex_m

1 file changed

+3
-6
lines changed

arch/arm/include/cortex_m/dwt.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,11 @@ extern "C" {
3636
* update to CMSIS_6.
3737
*/
3838
#if !defined DWT_LSR_Present_Msk
39-
#define DWT_LSR_Present_Msk \
40-
IF_ENABLED(CONFIG_ZEPHYR_CMSIS_MODULE, (ITM_LSR_Present_Msk)) \
41-
IF_DISABLED(CONFIG_ZEPHYR_CMSIS_MODULE, (ITM_LSR_PRESENT_Msk))
39+
#define DWT_LSR_Present_Msk ITM_LSR_PRESENT_Msk
4240
#endif
41+
4342
#if !defined DWT_LSR_Access_Msk
44-
#define DWT_LSR_Access_Msk \
45-
IF_ENABLED(CONFIG_ZEPHYR_CMSIS_MODULE, (ITM_LSR_Access_Msk)) \
46-
IF_DISABLED(CONFIG_ZEPHYR_CMSIS_MODULE, (ITM_LSR_ACCESS_Msk))
43+
#define DWT_LSR_Access_Msk ITM_LSR_ACCESS_Msk
4744
#endif
4845

4946
static inline void dwt_access(bool ena)

0 commit comments

Comments
 (0)