summaryrefslogtreecommitdiff
path: root/cortex_m
diff options
context:
space:
mode:
Diffstat (limited to 'cortex_m')
-rw-r--r--cortex_m/debug.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cortex_m/debug.h b/cortex_m/debug.h
index c1b63f6..5375e70 100644
--- a/cortex_m/debug.h
+++ b/cortex_m/debug.h
@@ -5,7 +5,11 @@
#include <mmio/mmio.h>
struct ITM_reg_t {
- volatile uint32_t STIM[256];
+ union {
+ volatile uint32_t u32;
+ volatile uint16_t u16;
+ volatile uint8_t u8;
+ } STIM[256];
uint32_t _reserved[640];
volatile uint32_t TER[8];
uint32_t _reserved2[8];