Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17dg by
mbed-rtos/rtx/TARGET_ARM7/rt_MemBox.h@40:e3bbda7444fa, 2019-05-07 (annotated)
- Committer:
- Noximilien
- Date:
- Tue May 07 15:22:35 2019 +0000
- Revision:
- 40:e3bbda7444fa
- Parent:
- 1:5aa2312d3e94
The Final, Submission Version. I have read and agreed to the academic integrity. SID:201160286
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Noximilien | 1:5aa2312d3e94 | 1 | /*---------------------------------------------------------------------------- |
Noximilien | 1:5aa2312d3e94 | 2 | * RL-ARM - RTX |
Noximilien | 1:5aa2312d3e94 | 3 | *---------------------------------------------------------------------------- |
Noximilien | 1:5aa2312d3e94 | 4 | * Name: RT_MEMBOX.H |
Noximilien | 1:5aa2312d3e94 | 5 | * Purpose: Interface functions for fixed memory block management system |
Noximilien | 1:5aa2312d3e94 | 6 | * Rev.: V4.60 |
Noximilien | 1:5aa2312d3e94 | 7 | *---------------------------------------------------------------------------- |
Noximilien | 1:5aa2312d3e94 | 8 | * |
Noximilien | 1:5aa2312d3e94 | 9 | * Copyright (c) 1999-2009 KEIL, 2009-2015 ARM Germany GmbH |
Noximilien | 1:5aa2312d3e94 | 10 | * All rights reserved. |
Noximilien | 1:5aa2312d3e94 | 11 | * Redistribution and use in source and binary forms, with or without |
Noximilien | 1:5aa2312d3e94 | 12 | * modification, are permitted provided that the following conditions are met: |
Noximilien | 1:5aa2312d3e94 | 13 | * - Redistributions of source code must retain the above copyright |
Noximilien | 1:5aa2312d3e94 | 14 | * notice, this list of conditions and the following disclaimer. |
Noximilien | 1:5aa2312d3e94 | 15 | * - Redistributions in binary form must reproduce the above copyright |
Noximilien | 1:5aa2312d3e94 | 16 | * notice, this list of conditions and the following disclaimer in the |
Noximilien | 1:5aa2312d3e94 | 17 | * documentation and/or other materials provided with the distribution. |
Noximilien | 1:5aa2312d3e94 | 18 | * - Neither the name of ARM nor the names of its contributors may be used |
Noximilien | 1:5aa2312d3e94 | 19 | * to endorse or promote products derived from this software without |
Noximilien | 1:5aa2312d3e94 | 20 | * specific prior written permission. |
Noximilien | 1:5aa2312d3e94 | 21 | * |
Noximilien | 1:5aa2312d3e94 | 22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Noximilien | 1:5aa2312d3e94 | 23 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Noximilien | 1:5aa2312d3e94 | 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
Noximilien | 1:5aa2312d3e94 | 25 | * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
Noximilien | 1:5aa2312d3e94 | 26 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
Noximilien | 1:5aa2312d3e94 | 27 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
Noximilien | 1:5aa2312d3e94 | 28 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
Noximilien | 1:5aa2312d3e94 | 29 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
Noximilien | 1:5aa2312d3e94 | 30 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
Noximilien | 1:5aa2312d3e94 | 31 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
Noximilien | 1:5aa2312d3e94 | 32 | * POSSIBILITY OF SUCH DAMAGE. |
Noximilien | 1:5aa2312d3e94 | 33 | *---------------------------------------------------------------------------*/ |
Noximilien | 1:5aa2312d3e94 | 34 | |
Noximilien | 1:5aa2312d3e94 | 35 | /* Functions */ |
Noximilien | 1:5aa2312d3e94 | 36 | #define rt_init_box _init_box |
Noximilien | 1:5aa2312d3e94 | 37 | #define rt_calloc_box _calloc_box |
Noximilien | 1:5aa2312d3e94 | 38 | extern int _init_box (void *box_mem, U32 box_size, U32 blk_size); |
Noximilien | 1:5aa2312d3e94 | 39 | extern void *rt_alloc_box (void *box_mem); |
Noximilien | 1:5aa2312d3e94 | 40 | extern void * _calloc_box (void *box_mem); |
Noximilien | 1:5aa2312d3e94 | 41 | extern int rt_free_box (void *box_mem, void *box); |
Noximilien | 1:5aa2312d3e94 | 42 | |
Noximilien | 1:5aa2312d3e94 | 43 | /*---------------------------------------------------------------------------- |
Noximilien | 1:5aa2312d3e94 | 44 | * end of file |
Noximilien | 1:5aa2312d3e94 | 45 | *---------------------------------------------------------------------------*/ |
Noximilien | 1:5aa2312d3e94 | 46 |