git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9293 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2016-04-16 16:28:01 +00:00
parent d57f928014
commit 11de5dcc88
1 changed files with 8 additions and 1 deletions

View File

@ -36,8 +36,15 @@
/**
* @brief Minimum alignment used for heap.
* @note Cannot use the sizeof operator in this macro.
*/
#define CH_HEAP_ALIGNMENT sizeof (heap_header_t)
#if (SIZEOF_PTR == 4) || defined(__DOXYGEN__)
#define CH_HEAP_ALIGNMENT 8
#elif (SIZEOF_PTR == 2)
#define CH_HEAP_ALIGNMENT 4
#else
#error "unsupported pointer size"
#endif
/*===========================================================================*/
/* Module pre-compile time settings. */