From 31ff7676c6e2b7aee63fc2c06bd19c565a74ad7a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 4 Jan 2016 15:19:26 +0000 Subject: MISRA-related fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8688 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/ARMCMx/chcore_v7m.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/rt/ports/ARMCMx/chcore_v7m.h') diff --git a/os/rt/ports/ARMCMx/chcore_v7m.h b/os/rt/ports/ARMCMx/chcore_v7m.h index 2d5b82a9e..df5d02e12 100644 --- a/os/rt/ports/ARMCMx/chcore_v7m.h +++ b/os/rt/ports/ARMCMx/chcore_v7m.h @@ -391,7 +391,7 @@ static inline void port_init(void) { /* DWT cycle counter enable, note, the M7 requires DWT unlocking.*/ CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; #if CORTEX_MODEL == 7 - DWT->LAR = 0xC5ACCE55; + DWT->LAR = 0xC5ACCE55U; #endif DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk; -- cgit v1.2.3