RTEMS 6.1-rc5
|
This header file defines support services of the API. More...
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <rtems/config.h>
#include <rtems/rtems/types.h>
#include <rtems/score/heapinfo.h>
Go to the source code of this file.
Macros | |
#define | RTEMS_MICROSECONDS_TO_TICKS(_us) ( ( _us ) / rtems_configuration_get_microseconds_per_tick() ) |
Gets the number of clock ticks for the microseconds value. | |
#define | RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ( ( _ms ) * 1000UL ) |
Gets the number of microseconds for the milliseconds value. | |
#define | RTEMS_MILLISECONDS_TO_TICKS(_ms) RTEMS_MICROSECONDS_TO_TICKS( RTEMS_MILLISECONDS_TO_MICROSECONDS( _ms ) ) |
Gets the number of clock ticks for the milliseconds value. | |
Functions | |
bool | rtems_workspace_allocate (size_t bytes, void **pointer) |
Allocates a memory area from the RTEMS Workspace. | |
bool | rtems_workspace_free (void *pointer) |
Frees the memory area allocated from the RTEMS Workspace. | |
bool | rtems_workspace_get_information (Heap_Information_block *the_info) |
Gets information about the RTEMS Workspace. | |
void * | rtems_workspace_greedy_allocate (const uintptr_t *block_sizes, size_t block_count) |
Greedy allocates that empties the RTEMS Workspace. | |
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. | |
void | rtems_workspace_greedy_free (void *opaque) |
Frees space of a greedy allocation to the RTEMS Workspace. | |
This header file defines support services of the API.