* added initial cc1100 shell commands

This commit is contained in:
Kaspar Schleiser 2010-11-09 17:08:35 +01:00
parent 9122445c27
commit 5df2aa6fb7
3 changed files with 11 additions and 2 deletions

View File

@ -6,6 +6,6 @@
SubDir TOP projects default ;
Module default_project : main.c : shell posix_io uart0 shell_commands ps rtc sht11 ltc4150 auto_init ;
Module default_project : main.c : shell posix_io uart0 shell_commands ps rtc sht11 ltc4150 cc110x auto_init ;
UseModule default_project ;

View File

@ -28,7 +28,7 @@
SubDir TOP sys shell ;
Module shell : shell.c ;
Module shell_commands : shell_commands.c rtc.c sht11.c ltc4150.c : shell ;
Module shell_commands : shell_commands.c rtc.c sht11.c ltc4150.c cc1100.c : shell ;
Module ps : ps.c ;

View File

@ -21,6 +21,11 @@ extern void _get_current_handler(char* unused);
extern void _reset_current_handler(char* unused);
#endif
#ifdef MODULE_CC110X
extern void _cc1100_get_address_handler(char *unused);
extern void _cc1100_set_address_handler(char *ptr);
#endif
const shell_command_t _shell_command_list[] = {
#ifdef MODULE_PS
{"ps", "Prints information about running threads.", _ps_handler},
@ -37,6 +42,10 @@ const shell_command_t _shell_command_list[] = {
#ifdef MODULE_LTC4150
{"cur", "Prints current and average power consumption.", _get_current_handler},
{"rstcur", "Resets coulomb counter.", _reset_current_handler},
#endif
#ifdef MODULE_CC110X
{"cc1100_get_address", "", _cc1100_get_address_handler},
{"cc1100_set_address", "", _cc1100_set_address_handler},
#endif
{NULL, NULL, NULL}
};