diff options
author | Karl Palsson <karlp@etactica.com> | 2021-09-16 19:07:43 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-09-16 20:29:55 +0200 |
commit | 996cf482bcf49fd58ab84eddd2ad9b138bcc425b (patch) | |
tree | 7485852d39bc75fb24f85f0a0443afe6fb264f3c | |
parent | 17e2631f49b799121c1dcfdf3e89e8d6a4928a42 (diff) |
ITM: allow varisized access
save that trace bandwidth baby
-rw-r--r-- | cortex_m/debug.h | 6 |
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]; |