Changeset 6d4940d in rtems


Ignore:
Timestamp:
Feb 4, 2008, 7:37:46 PM (11 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f8d39b8d
Parents:
348eada4
Message:

2008-02-04 Jennifer Averett <jennifer.averett@…>

  • rtems/Makefile.am, rtems/include/rtems/rtems/support.h: Added workspace manipulation routines for testing.
  • rtems/src/workspace.c: New file.
Location:
cpukit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r348eada4 r6d4940d  
     12008-02-04      Jennifer Averett <jennifer.averett@OARcorp.com>
     2
     3        * rtems/Makefile.am, rtems/include/rtems/rtems/support.h: Added
     4        workspace manipulation routines for testing.
     5        * rtems/src/workspace.c: New file.
     6
    172008-02-04      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/rtems/Makefile.am

    r348eada4 r6d4940d  
    132132    src/dpmeminternal2external.c src/dpmemdata.c
    133133
     134## WORKSPACE_FILES
     135librtems_a_SOURCES += src/workspace.c
     136
    134137librtems_a_SOURCES += src/attr.c
    135138
  • cpukit/rtems/include/rtems/rtems/support.h

    r348eada4 r6d4940d  
    2626#include <rtems/rtems/types.h>
    2727
    28 /*
    29  *  Time related
     28/**  @brief milliseconds to microseconds
     29 *
     30 *  This is the public milliseconds to microseconds conversion.
    3031 */
    31 
    3232#define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) \
    3333        TOD_MILLISECONDS_TO_MICROSECONDS(_ms)
     34
     35/** @brief milliseconds to ticks
     36 *
     37 *  This is the public milliseconds to ticks conversion.
     38 */
    3439#define RTEMS_MILLISECONDS_TO_TICKS(_ms) \
    3540        TOD_MILLISECONDS_TO_TICKS(_ms)
     41
     42/** @brief microseconds to ticks
     43 *  This is the public microseconds to tick conversion.
     44 */
    3645#define RTEMS_MICROSECONDS_TO_TICKS(_ms) \
    3746        TOD_MICROSECONDS_TO_TICKS(_ms)
     47
     48/** @brief get workspace information
     49 *
     50 *  This returns information about the heap that is used as
     51 *  the RTEMS Executive Workspace.
     52 *
     53 *  @param[in] the_info
     54 *
     55 *  @return TRUE if successful
     56 */
     57boolean rtems_workspace_get_information(
     58  Heap_Information_block  *the_info
     59);
     60
     61/** @brief get workspace information
     62 *
     63 *  This returns information about the heap that is used as
     64 *  the RTEMS Executive Workspace.
     65 *
     66 *  @param[in] bytes is the number of bytes to allocate
     67 *  @param[in] pointer is the returned pointer to allocated memory
     68 *
     69 *  @return TRUE if successful
     70 */
     71boolean rtems_workspace_allocate(
     72  size_t   bytes,
     73  void   **pointer
     74);
     75
     76/** @brief free workspace
     77 *
     78 *  This frees the workspace that was allocated from   
     79 *  the RTEMS Executive Workspace.
     80 *
     81 *  @param[in] pointer is the allocated workspace
     82 *
     83 *  @return TRUE if successful
     84 */
     85boolean rtems_workspace_free(
     86  void *pointer
     87);
    3888
    3989#ifndef __RTEMS_APPLICATION__
Note: See TracChangeset for help on using the changeset viewer.