2013-06-27 16:16:57 +02:00
|
|
|
/*
|
|
|
|
* sc_heap.c - the handler of the heap state on the command shell.
|
2013-09-05 12:41:43 +02:00
|
|
|
*
|
2013-06-27 16:16:57 +02:00
|
|
|
* Copyright (C) 2013 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
|
|
|
|
*
|
2013-08-06 16:36:37 +02:00
|
|
|
* The source code is licensed under the LGPLv2 license,
|
|
|
|
* See the file LICENSE for more details.
|
2013-06-27 16:16:57 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @internal
|
2013-08-06 16:36:37 +02:00
|
|
|
* @brief Show the heap state for the LPC2387 on the command shell.
|
2013-06-27 16:16:57 +02:00
|
|
|
*
|
2013-09-05 12:41:43 +02:00
|
|
|
* @author Freie Universität Berlin, Computer Systems & Telematics
|
2013-08-06 16:36:37 +02:00
|
|
|
* @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
|
2013-06-27 16:16:57 +02:00
|
|
|
*
|
2013-09-05 12:41:43 +02:00
|
|
|
* @note $Id: sc_heap.c 3855 2013-09-05 12:40:11 kasmi $
|
2013-06-27 16:16:57 +02:00
|
|
|
*/
|
|
|
|
|
2013-09-19 13:47:23 +02:00
|
|
|
#ifdef MODULE_LPC_COMMON
|
|
|
|
|
2013-06-27 16:16:57 +02:00
|
|
|
extern void heap_stats(void);
|
|
|
|
|
2013-09-05 12:41:43 +02:00
|
|
|
void _heap_handler(char *unused)
|
|
|
|
{
|
2013-08-30 17:14:56 +02:00
|
|
|
(void) unused;
|
2013-08-06 16:36:37 +02:00
|
|
|
heap_stats();
|
2013-06-27 16:16:57 +02:00
|
|
|
}
|
|
|
|
|
2013-09-19 13:47:23 +02:00
|
|
|
#endif
|
|
|
|
|