summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2021-09-16 19:07:43 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-09-16 20:29:55 +0200
commit996cf482bcf49fd58ab84eddd2ad9b138bcc425b (patch)
tree7485852d39bc75fb24f85f0a0443afe6fb264f3c
parent17e2631f49b799121c1dcfdf3e89e8d6a4928a42 (diff)
ITM: allow varisized access
save that trace bandwidth baby
-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];