Go to the documentation of this file. 36 #ifndef _RTEMS_CONFDEFS_WKSPACESUPPORT_H 37 #define _RTEMS_CONFDEFS_WKSPACESUPPORT_H 39 #ifndef __CONFIGURATION_TEMPLATE_h 40 #error "Do not include this file directly, use <rtems/confdefs.h> instead" 47 #define _Configure_Zero_or_one( _number ) ( ( _number ) != 0 ? 1 : 0 ) 49 #define _Configure_Align_up( _val, _align ) \ 50 ( ( ( _val ) + ( _align ) - 1) - ( ( _val ) + ( _align ) - 1 ) % ( _align ) ) 52 #define _CONFIGURE_HEAP_MIN_BLOCK_SIZE \ 53 _Configure_Align_up( sizeof( Heap_Block ), CPU_HEAP_ALIGNMENT ) 55 #define _Configure_From_workspace( _size ) \ 56 ( (uintptr_t) ( _Configure_Zero_or_one( _size ) \ 57 * _Configure_Align_up( \ 58 _size + HEAP_BLOCK_HEADER_SIZE, \ 59 _CONFIGURE_HEAP_MIN_BLOCK_SIZE \