1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #214 from OlegHahm/sc_heap_fix

include sc_heap only when building for LPC boards
This commit is contained in:
Kaspar Schleiser 2013-09-19 07:48:17 -07:00
commit d5a62b3910
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,8 @@
* @note $Id: sc_heap.c 3855 2013-09-05 12:40:11 kasmi $
*/
#ifdef MODULE_LPC_COMMON
extern void heap_stats(void);
void _heap_handler(char *unused)
@ -26,3 +28,5 @@ void _heap_handler(char *unused)
heap_stats();
}
#endif

View File

@ -94,7 +94,9 @@ extern void _read_bytes(char *bytes);
const shell_command_t _shell_command_list[] = {
{"id", "Gets or sets the node's id.", _id_handler},
#ifdef MODULE_LPC_COMMON
{"heap", "Shows the heap state for the LPC2387 on the command shell.", _heap_handler},
#endif
#ifdef MODULE_PS
{"ps", "Prints information about running threads.", _ps_handler},
#endif