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:
commit
d5a62b3910
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user