mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-18 09:08:33 -04:00
Add an option for 8 byte alignment.
This commit is contained in:
parent
8b8a0eeff3
commit
17228aca47
2 changed files with 10 additions and 0 deletions
|
@ -44,6 +44,11 @@
|
|||
#include "task.h"
|
||||
|
||||
/* Setup the correct byte alignment mask for the defined byte alignment. */
|
||||
|
||||
#if portBYTE_ALIGNMENT == 8
|
||||
#define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0007 )
|
||||
#endif
|
||||
|
||||
#if portBYTE_ALIGNMENT == 4
|
||||
#define heapBYTE_ALIGNMENT_MASK ( ( size_t ) 0x0003 )
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue