Luca
Fork of mbed-rtos by
rtx/TARGET_CORTEX_M/rt_Memory.h@123:58563e6cba1e, 2016-11-14 (annotated)
- Committer:
- c1728p9
- Date:
- Mon Nov 14 17:14:42 2016 -0600
- Revision:
- 123:58563e6cba1e
- Parent:
- 112:53ace74b190c
Configure RTOS to behave as it did before 5.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
c1728p9 | 123:58563e6cba1e | 1 | |
c1728p9 | 123:58563e6cba1e | 2 | /** \addtogroup rtos */ |
c1728p9 | 123:58563e6cba1e | 3 | /** @{*/ |
mbed_official | 112:53ace74b190c | 4 | /*---------------------------------------------------------------------------- |
mbed_official | 112:53ace74b190c | 5 | * CMSIS-RTOS - RTX |
mbed_official | 112:53ace74b190c | 6 | *---------------------------------------------------------------------------- |
mbed_official | 112:53ace74b190c | 7 | * Name: RT_MEMORY.H |
mbed_official | 112:53ace74b190c | 8 | * Purpose: Interface functions for Dynamic Memory Management System |
mbed_official | 112:53ace74b190c | 9 | * Rev.: V4.79 |
mbed_official | 112:53ace74b190c | 10 | *---------------------------------------------------------------------------- |
mbed_official | 112:53ace74b190c | 11 | * |
mbed_official | 112:53ace74b190c | 12 | * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH |
mbed_official | 112:53ace74b190c | 13 | * All rights reserved. |
mbed_official | 112:53ace74b190c | 14 | * Redistribution and use in source and binary forms, with or without |
mbed_official | 112:53ace74b190c | 15 | * modification, are permitted provided that the following conditions are met: |
mbed_official | 112:53ace74b190c | 16 | * - Redistributions of source code must retain the above copyright |
mbed_official | 112:53ace74b190c | 17 | * notice, this list of conditions and the following disclaimer. |
mbed_official | 112:53ace74b190c | 18 | * - Redistributions in binary form must reproduce the above copyright |
mbed_official | 112:53ace74b190c | 19 | * notice, this list of conditions and the following disclaimer in the |
mbed_official | 112:53ace74b190c | 20 | * documentation and/or other materials provided with the distribution. |
mbed_official | 112:53ace74b190c | 21 | * - Neither the name of ARM nor the names of its contributors may be used |
mbed_official | 112:53ace74b190c | 22 | * to endorse or promote products derived from this software without |
mbed_official | 112:53ace74b190c | 23 | * specific prior written permission. |
mbed_official | 112:53ace74b190c | 24 | * |
mbed_official | 112:53ace74b190c | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 112:53ace74b190c | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 112:53ace74b190c | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
mbed_official | 112:53ace74b190c | 28 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
mbed_official | 112:53ace74b190c | 29 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
mbed_official | 112:53ace74b190c | 30 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
mbed_official | 112:53ace74b190c | 31 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
mbed_official | 112:53ace74b190c | 32 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
mbed_official | 112:53ace74b190c | 33 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
mbed_official | 112:53ace74b190c | 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
mbed_official | 112:53ace74b190c | 35 | * POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 112:53ace74b190c | 36 | *---------------------------------------------------------------------------*/ |
mbed_official | 112:53ace74b190c | 37 | |
mbed_official | 112:53ace74b190c | 38 | /* Types */ |
mbed_official | 112:53ace74b190c | 39 | typedef struct mem { /* << Memory Pool management struct >> */ |
mbed_official | 112:53ace74b190c | 40 | struct mem *next; /* Next Memory Block in the list */ |
mbed_official | 112:53ace74b190c | 41 | U32 len; /* Length of data block */ |
mbed_official | 112:53ace74b190c | 42 | } MEMP; |
mbed_official | 112:53ace74b190c | 43 | |
mbed_official | 112:53ace74b190c | 44 | /* Functions */ |
mbed_official | 112:53ace74b190c | 45 | extern U32 rt_init_mem (void *pool, U32 size); |
mbed_official | 112:53ace74b190c | 46 | extern void *rt_alloc_mem (void *pool, U32 size); |
mbed_official | 112:53ace74b190c | 47 | extern U32 rt_free_mem (void *pool, void *mem); |
c1728p9 | 123:58563e6cba1e | 48 | |
c1728p9 | 123:58563e6cba1e | 49 | /** @}*/ |