Magnificent7 / Hackathon
Committer:
bryantaylor
Date:
Tue Sep 20 21:26:12 2016 +0000
Revision:
0:eafc3fd41f75
hackathon

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bryantaylor 0:eafc3fd41f75 1 /*----------------------------------------------------------------------------
bryantaylor 0:eafc3fd41f75 2 * RL-ARM - RTX
bryantaylor 0:eafc3fd41f75 3 *----------------------------------------------------------------------------
bryantaylor 0:eafc3fd41f75 4 * Name: RT_MEMBOX.H
bryantaylor 0:eafc3fd41f75 5 * Purpose: Interface functions for fixed memory block management system
bryantaylor 0:eafc3fd41f75 6 * Rev.: V4.70
bryantaylor 0:eafc3fd41f75 7 *----------------------------------------------------------------------------
bryantaylor 0:eafc3fd41f75 8 *
bryantaylor 0:eafc3fd41f75 9 * Copyright (c) 1999-2009 KEIL, 2009-2013 ARM Germany GmbH
bryantaylor 0:eafc3fd41f75 10 * All rights reserved.
bryantaylor 0:eafc3fd41f75 11 * Redistribution and use in source and binary forms, with or without
bryantaylor 0:eafc3fd41f75 12 * modification, are permitted provided that the following conditions are met:
bryantaylor 0:eafc3fd41f75 13 * - Redistributions of source code must retain the above copyright
bryantaylor 0:eafc3fd41f75 14 * notice, this list of conditions and the following disclaimer.
bryantaylor 0:eafc3fd41f75 15 * - Redistributions in binary form must reproduce the above copyright
bryantaylor 0:eafc3fd41f75 16 * notice, this list of conditions and the following disclaimer in the
bryantaylor 0:eafc3fd41f75 17 * documentation and/or other materials provided with the distribution.
bryantaylor 0:eafc3fd41f75 18 * - Neither the name of ARM nor the names of its contributors may be used
bryantaylor 0:eafc3fd41f75 19 * to endorse or promote products derived from this software without
bryantaylor 0:eafc3fd41f75 20 * specific prior written permission.
bryantaylor 0:eafc3fd41f75 21 *
bryantaylor 0:eafc3fd41f75 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bryantaylor 0:eafc3fd41f75 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bryantaylor 0:eafc3fd41f75 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
bryantaylor 0:eafc3fd41f75 25 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
bryantaylor 0:eafc3fd41f75 26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
bryantaylor 0:eafc3fd41f75 27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
bryantaylor 0:eafc3fd41f75 28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
bryantaylor 0:eafc3fd41f75 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
bryantaylor 0:eafc3fd41f75 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
bryantaylor 0:eafc3fd41f75 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
bryantaylor 0:eafc3fd41f75 32 * POSSIBILITY OF SUCH DAMAGE.
bryantaylor 0:eafc3fd41f75 33 *---------------------------------------------------------------------------*/
bryantaylor 0:eafc3fd41f75 34
bryantaylor 0:eafc3fd41f75 35 /* Functions */
bryantaylor 0:eafc3fd41f75 36 #define rt_init_box _init_box
bryantaylor 0:eafc3fd41f75 37 #define rt_calloc_box _calloc_box
bryantaylor 0:eafc3fd41f75 38 extern int _init_box (void *box_mem, U32 box_size, U32 blk_size);
bryantaylor 0:eafc3fd41f75 39 extern void *rt_alloc_box (void *box_mem);
bryantaylor 0:eafc3fd41f75 40 extern void * _calloc_box (void *box_mem);
bryantaylor 0:eafc3fd41f75 41 extern int rt_free_box (void *box_mem, void *box);
bryantaylor 0:eafc3fd41f75 42
bryantaylor 0:eafc3fd41f75 43 /*----------------------------------------------------------------------------
bryantaylor 0:eafc3fd41f75 44 * end of file
bryantaylor 0:eafc3fd41f75 45 *---------------------------------------------------------------------------*/
bryantaylor 0:eafc3fd41f75 46