From ec949c90a7ad9aee23a2d02a5356cf366010086e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 5 Jun 2021 13:37:03 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14495 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/common/portability/IAR/ccportab.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/common/portability/IAR/ccportab.h b/os/common/portability/IAR/ccportab.h index 52420b7ea..efccb7324 100644 --- a/os/common/portability/IAR/ccportab.h +++ b/os/common/portability/IAR/ccportab.h @@ -77,14 +77,14 @@ * @note If the compiler does not support such a feature then this macro * must not be defined or it could originate errors. */ -//#define CC_ALIGN_DATA(n) /* TODO */ +#define CC_ALIGN_DATA(n) _Pragma(__CH_STRINGIFY(data_alignment=n)) /** * @brief Enforces alignment of a function declared afterward. * @note If the compiler does not support such a feature then this macro * must not be defined or it could originate errors. */ -//#define CC_ALIGN_CODE(n) /* TODO */ +#define CC_ALIGN_CODE(n) _Pragma(__CH_STRINGIFY(data_alignment=n)) /** * @brief Enforces packing of the structure declared afterward.