We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1dac87 commit 4591370Copy full SHA for 4591370
libraries/SrcWrapper/src/stm32/dwt.c
@@ -58,11 +58,20 @@ void dwt_access(bool ena)
58
* Define DWT LSR mask which is (currentuly) not defined by the CMSIS.
59
* Same as ITM LSR one.
60
*/
61
+
62
#if !defined DWT_LSR_Present_Msk
63
+#if defined(ITM_LSR_PRESENT_Msk)
64
+#define DWT_LSR_Present_Msk ITM_LSR_PRESENT_Msk
65
+#else
66
#define DWT_LSR_Present_Msk ITM_LSR_Present_Msk
67
#endif
68
+#endif
69
#if !defined DWT_LSR_Access_Msk
70
+#if defined(ITM_LSR_ACCESS_Msk)
71
+#define DWT_LSR_Access_Msk ITM_LSR_ACCESS_Msk
72
73
#define DWT_LSR_Access_Msk ITM_LSR_Access_Msk
74
75
76
uint32_t lsr = DWT->LSR;
77
0 commit comments