diff options
Diffstat (limited to 'os/ports')
-rw-r--r-- | os/ports/common/ARMCMx/nvic.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/os/ports/common/ARMCMx/nvic.h b/os/ports/common/ARMCMx/nvic.h index ec86d5ad1..e4b6757a0 100644 --- a/os/ports/common/ARMCMx/nvic.h +++ b/os/ports/common/ARMCMx/nvic.h @@ -229,6 +229,27 @@ typedef struct { #define FPDSCR_RMODE(n) ((n##U) << 22)
/**
+ * @brief Structure representing the SCS I/O space.
+ */
+typedef struct {
+ IOREG32 DHCSR;
+ IOREG32 DCRSR;
+ IOREG32 DCRDR;
+ IOREG32 DEMCR;
+} CMx_SCS;
+
+/**
+ * @brief SCS peripheral base address.
+ */
+#define SCSBase ((CMx_SCS *)0xE000EDF0U)
+#define SCS_DHCSR (SCSBase->DHCSR)
+#define SCS_DCRSR (SCSBase->DCRSR)
+#define SCS_DCRDR (SCSBase->DCRDR)
+#define SCS_DEMCR (SCSBase->DEMCR)
+
+#define SCS_DEMCR_TRCENA (0x1U << 24)
+
+/**
* @brief Structure representing the DWT I/O space.
*/
typedef struct {
|