Memory Management - RTOS

download Memory Management - RTOS

of 3

Transcript of Memory Management - RTOS

  • 8/12/2019 Memory Management - RTOS

    1/3

  • 8/12/2019 Memory Management - RTOS

    2/3

    memory is. The init_mem_pool function allows you to do this.

    int init_mem_pool (

    unsigned int uPoolId,

    void *p_vMemory,

    unsigned int.uBufSize,

    unsigned int uBufCount,

    unsigned int uPoolType

    );

    The uPoolId parameter is the identifier you will use in later calls togetbuf, reqbuf, and relbuf. The p_vMemory parameter points to theblock of memory to use as the pool; you must make sure that it points

    to available memory. The uBufSize and uBufCount parametersindicate how large each buffer is and how many of them there are thepool. (The uPoolType parameter indicates whether these buffers willbe used by tasks or by interrupt routines. This distinction is peculiarto MultiTask!, and we will not discuss it here.) The picture shows howthis function allocates the pool of memory buffers.

    Memory management

    Link to lesson 10 - Interrupt Routines in an RTOS Environment - Part1Link to this part Self TestLink to this part AssignmentLink to this part Chat

    Subpages (1): Week 9

    mory management - RTOS http://sites.google.com/site/rtosmifmim/home/-memory-management

    3 11/21/2011 9:38 PM

  • 8/12/2019 Memory Management - RTOS

    3/3

    Sign in | Recent Site Activity | Terms | Report Abuse | Print page | Powered by Google Sites

    mory management - RTOS http://sites.google.com/site/rtosmifmim/home/-memory-management

    3 11/21/2011 9:38 PM