From 996cf482bcf49fd58ab84eddd2ad9b138bcc425b Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 16 Sep 2021 17:07:43 +0000 Subject: ITM: allow varisized access save that trace bandwidth baby --- cortex_m/debug.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cortex_m') 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 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]; -- cgit v1.2.3