18 #ifndef _RTEMS_RTEMS_SUPPORT_H 19 #define _RTEMS_RTEMS_SUPPORT_H 22 #include <rtems/config.h> 36 #define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ((uint32_t)(_ms) * 1000UL) 41 #define RTEMS_MILLISECONDS_TO_TICKS(_ms) \ 42 (RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) / \ 43 rtems_configuration_get_microseconds_per_tick()) 48 #define RTEMS_MICROSECONDS_TO_TICKS(_us) \ 49 ((_us) / rtems_configuration_get_microseconds_per_tick()) 73 *c1 = (char) ((name >> 24) & 0xff);
74 *c2 = (char) ((name >> 16) & 0xff);
75 *c3 = (char) ((name >> 8) & 0xff);
76 *c4 = (char) ( name & 0xff);
137 const uintptr_t *block_sizes,
151 uintptr_t *allocatable_size
RTEMS_INLINE_ROUTINE bool rtems_is_name_valid(rtems_name name)
Returns true if the name is valid, and false otherwise.
Definition: support.h:54
RTEMS_INLINE_ROUTINE void rtems_name_to_characters(rtems_name name, char *c1, char *c2, char *c3, char *c4)
Breaks the object name into the four component characters c1, c2, c3, and c4.
Definition: support.h:65
void * rtems_workspace_greedy_allocate_all_except_largest(uintptr_t *allocatable_size)
Greedy allocate all blocks except the largest free block.
Definition: workspacegreedy.c:46
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
void * rtems_workspace_greedy_allocate(const uintptr_t *block_sizes, size_t block_count)
Greedy allocate that empties the workspace.
Definition: workspacegreedy.c:32
void rtems_workspace_greedy_free(void *opaque)
Frees space of a greedy allocation.
Definition: workspacegreedy.c:62
uint32_t rtems_name
Classic API object name type.
Definition: types.h:74
bool rtems_workspace_allocate(size_t bytes, void **pointer)
Allocates Memory from the Workspace.
Definition: workspace.c:40
bool rtems_workspace_get_information(Heap_Information_block *the_info)
Gets Workspace Information.
Definition: workspace.c:30
bool rtems_workspace_free(void *pointer)
Frees Memory Allocated from the Workspace.
Definition: workspace.c:67