15 #ifndef _RTEMS_RTEMS_SUPPORT_H 16 #define _RTEMS_RTEMS_SUPPORT_H 19 #include <rtems/config.h> 33 #define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ((_ms) * 1000UL) 38 #define RTEMS_MILLISECONDS_TO_TICKS(_ms) \ 39 (RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) / \ 40 rtems_configuration_get_microseconds_per_tick()) 45 #define RTEMS_MICROSECONDS_TO_TICKS(_us) \ 46 ((_us) / rtems_configuration_get_microseconds_per_tick()) 70 *c1 = (char) ((name >> 24) & 0xff);
71 *c2 = (char) ((name >> 16) & 0xff);
72 *c3 = (char) ((name >> 8) & 0xff);
73 *c4 = (char) ( name & 0xff);
134 const uintptr_t *block_sizes,
148 uintptr_t *allocatable_size
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
RTEMS_INLINE_ROUTINE bool rtems_is_name_valid(rtems_name name)
Returns true if the name is valid, and false otherwise.
Definition: support.h:51
uint32_t rtems_name
Classic API object name type.
Definition: types.h:77
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
bool rtems_workspace_allocate(size_t bytes, void **pointer)
Allocates Memory from the Workspace.
Definition: workspace.c:39
bool rtems_workspace_get_information(Heap_Information_block *the_info)
Gets Workspace Information.
Definition: workspace.c:29
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:62
bool rtems_workspace_free(void *pointer)
Frees Memory Allocated from the Workspace.
Definition: workspace.c:66
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66