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