diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-11 08:57:22 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-02-11 08:57:22 +0000 |
commit | 267cd61c1914bc1d71f47f020d391c2d3ac1c224 (patch) | |
tree | 070a8a95f0b45ef4154afc21314f6d14b8a5ae73 /os/ports | |
parent | 0921f80daa58844fc056ac6720720682da9ceb45 (diff) | |
download | ChibiOS-267cd61c1914bc1d71f47f020d391c2d3ac1c224.tar.gz ChibiOS-267cd61c1914bc1d71f47f020d391c2d3ac1c224.tar.bz2 ChibiOS-267cd61c1914bc1d71f47f020d391c2d3ac1c224.zip |
Fixed bug 3485500.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3950 35acf78f-673a-0410-8e92-d51de3d6d3f4
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 {
|