add a handler for the heap state
This commit is contained in:
parent
abc00efa78
commit
3ea68ecfc1
@ -1,5 +1,5 @@
|
||||
SRC = shell_commands.c sc_id.c
|
||||
INCLUDES = -I../../../core/include -I../../include -I../../../drivers/include/
|
||||
SRC = shell_commands.c sc_id.c sc_heap.c
|
||||
INCLUDES = -I../../../core/include -I../../include -I../../../drivers/include/
|
||||
|
||||
ifneq (,$(findstring cc110x_ng,$(USEMODULE)))
|
||||
INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng/include/
|
||||
|
||||
24
sys/shell/commands/sc_heap.c
Normal file
24
sys/shell/commands/sc_heap.c
Normal 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();
|
||||
}
|
||||
|
||||
@ -3,22 +3,25 @@
|
||||
*
|
||||
* Copyright (C) 2013 INRIA.
|
||||
*
|
||||
* This file subject to the terms and conditions of the GNU Lesser General
|
||||
* Public License. See the file LICENSE in the top level directory for more
|
||||
* details.
|
||||
* The source code is licensed under the LGPLv2 license,
|
||||
* see the file LICENSE for more details.
|
||||
*
|
||||
* @ingroup shell_commands
|
||||
* @{
|
||||
* @file shell_commands.c
|
||||
* @brief sets up the system shell command struct
|
||||
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
||||
* @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include <shell_commands.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
|
||||
extern void _ps_handler(char *unused);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user