/* * heap management in finsh shell. * * copyright (C) 2006 - 2013, rt-thread development team * * this file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernard.xiong at gmail.com> * * all rights reserved. * * this program is free software; you can redistribute it and/or modify * it under the terms of the gnu general public license as published by * the Free software foundation; either version 2 of the license, or * (at your option) any later version. * * this program is distributed in the hope that it will be useful, * but without any warranty; without even the implied warranty of * merchantability or fitness for a particular purpose. See the * GNU General Public License for more Details. * * you should have received a copy of the GNU General Public License along * with this program; if not, write to the free software foundation, inc., * 51 franklin street, fifth floor, boston, ma 02110-1301 usa . * * change logs: * date author notes * 2010-03-22 bernard first version */#include <finsh.h> #ifndef __finsh_heap_h__# Define __finsh_heap_h__int finsh_heap_init (void); //finsh Heap Initialization void* finsh_heap_ Allocate (size_t size); //gets the size memory Void finsh_heap_free (VOID*PTR); // Free Memory #endif
This article is from the "mountain Ask the Boy" blog, please be sure to keep this source http://linpeng.blog.51cto.com/9779987/1685401
Rt-thread finsh Source Analysis: Finsh_heap.h