add a handler for the heap state

This commit is contained in:
Zakaria_Kasmi 2013-06-27 16:16:57 +02:00 committed by Oleg Hahm
parent abc00efa78
commit 3ea68ecfc1
3 changed files with 33 additions and 6 deletions

View File

@ -1,4 +1,4 @@
SRC = shell_commands.c sc_id.c SRC = shell_commands.c sc_id.c sc_heap.c
INCLUDES = -I../../../core/include -I../../include -I../../../drivers/include/ INCLUDES = -I../../../core/include -I../../include -I../../../drivers/include/
ifneq (,$(findstring cc110x_ng,$(USEMODULE))) ifneq (,$(findstring cc110x_ng,$(USEMODULE)))

View File

@ -0,0 +1,24 @@
/*
* sc_heap.c - the handler of the heap state on the command shell.
* Copyright (C) 2013 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
*
* The source code is licensed under the LGPLv2 license, See the file LICENSE for more details.
*/
/**
* @file
* @internal
* @brief Show the heap state for the LPC2387 on the command shell.
*
* @author Freie Universität Berlin, Computer Systems & Telematics
* @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
*
* @note $Id: sc_heap.c 3854 2013-05-24 17:53:01Z zkasmi $
*/
extern void heap_stats(void);
void _heap_handler(char* unnused){
heap_stats();
}

View File

@ -3,22 +3,25 @@
* *
* Copyright (C) 2013 INRIA. * Copyright (C) 2013 INRIA.
* *
* This file subject to the terms and conditions of the GNU Lesser General * The source code is licensed under the LGPLv2 license,
* Public License. See the file LICENSE in the top level directory for more * see the file LICENSE for more details.
* details.
* *
* @ingroup shell_commands * @ingroup shell_commands
* @{ * @{
* @file shell_commands.c * @file shell_commands.c
* @brief sets up the system shell command struct * @brief sets up the system shell command struct
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
* @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
* @} * @}
*/ */
#include <shell_commands.h> #include <shell_commands.h>
#include <stdlib.h> #include <stdlib.h>
extern void _id_handler(char *id);
extern void _id_handler(char* id);
extern void _heap_handler(char* unused);
#ifdef MODULE_PS #ifdef MODULE_PS
extern void _ps_handler(char *unused); extern void _ps_handler(char *unused);