56#ifndef _RTEMS_RTEMS_SUPPORT_H
57#define _RTEMS_RTEMS_SUPPORT_H
62#include <rtems/config.h>
100static inline bool rtems_is_name_valid(
rtems_name name )
130#define RTEMS_MICROSECONDS_TO_TICKS( _us ) \
131 ( ( _us ) / rtems_configuration_get_microseconds_per_tick() )
155#define RTEMS_MILLISECONDS_TO_MICROSECONDS( _ms ) ( ( _ms ) * 1000UL )
181#define RTEMS_MILLISECONDS_TO_TICKS( _ms ) \
182 RTEMS_MICROSECONDS_TO_TICKS( RTEMS_MILLISECONDS_TO_MICROSECONDS( _ms ) )
210static inline void rtems_name_to_characters(
218 *c1 = (char) ( ( ( name ) >> 24 ) & 0xff );
219 *c2 = (char) ( ( ( name ) >> 16 ) & 0xff );
220 *c3 = (char) ( ( ( name ) >> 8 ) & 0xff );
221 *c4 = (char) ( ( name ) & 0xff );
332 const uintptr_t *block_sizes,
370 uintptr_t *allocatable_size
This header file provides types used by the Classic API.
bool rtems_workspace_allocate(size_t bytes, void **pointer)
Allocates a memory area from the RTEMS Workspace.
Definition: workspace.c:61
bool rtems_workspace_free(void *pointer)
Frees the memory area allocated from the RTEMS Workspace.
Definition: workspace.c:88
bool rtems_workspace_get_information(Heap_Information_block *the_info)
Gets information about the RTEMS Workspace.
Definition: workspace.c:51
void rtems_workspace_greedy_free(void *opaque)
Frees space of a greedy allocation to the RTEMS Workspace.
Definition: workspacegreedy.c:88
void * rtems_workspace_greedy_allocate(const uintptr_t *block_sizes, size_t block_count)
Greedy allocates that empties the RTEMS Workspace.
Definition: workspacegreedy.c:52
void * rtems_workspace_greedy_allocate_all_except_largest(uintptr_t *allocatable_size)
Greedy allocates all blocks of the RTEMS Workspace except the largest free block.
Definition: workspacegreedy.c:69
uint32_t rtems_name
This type represents Classic API object names.
Definition: types.h:226
This header file provides interfaces of the Barrier Handler which are used by the implementation and ...