2010-10-01 15:24:43 +02:00
|
|
|
#include <shell.h>
|
2010-11-04 14:24:31 +01:00
|
|
|
#include <stdlib.h>
|
2010-10-01 15:24:43 +02:00
|
|
|
|
2010-11-04 15:05:51 +01:00
|
|
|
#ifdef MODULE_PS
|
2010-11-04 18:16:39 +01:00
|
|
|
extern void _ps_handler(char* unused);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MODULE_RTC
|
2010-11-05 19:33:45 +01:00
|
|
|
extern void _date_handler(char* now);
|
2010-11-04 18:16:39 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MODULE_SHT11
|
|
|
|
extern void _get_temperature_handler(char* unused);
|
|
|
|
extern void _get_humidity_handler(char* unused);
|
|
|
|
extern void _get_weather_handler(char* unused);
|
2010-11-04 15:05:51 +01:00
|
|
|
#endif
|
|
|
|
|
2010-11-05 23:43:14 +01:00
|
|
|
#ifdef MODULE_LTC4150
|
|
|
|
extern void _get_current_handler(char* unused);
|
|
|
|
extern void _reset_current_handler(char* unused);
|
|
|
|
#endif
|
|
|
|
|
2010-10-01 15:24:43 +02:00
|
|
|
const shell_command_t _shell_command_list[] = {
|
|
|
|
#ifdef MODULE_PS
|
2010-11-04 15:05:51 +01:00
|
|
|
{"ps", "Prints information about running threads.", _ps_handler},
|
2010-11-04 18:16:39 +01:00
|
|
|
#endif
|
|
|
|
#ifdef MODULE_RTC
|
2010-11-05 19:33:45 +01:00
|
|
|
{"date", "Geets or gets current date and time.", _date_handler},
|
2010-11-04 18:16:39 +01:00
|
|
|
#endif
|
|
|
|
#ifdef MODULE_SHT11
|
2010-11-05 23:43:14 +01:00
|
|
|
{"temp", "Prints measured temperature.", _get_temperature_handler},
|
|
|
|
{"hum", "Prints measured humidity.", _get_humidity_handler},
|
|
|
|
{"weather", "Prints measured humidity and temperature.", _get_weather_handler},
|
|
|
|
#endif
|
|
|
|
#ifdef MODULE_LTC4150
|
|
|
|
{"cur", "Prints current and average power consumption.", _get_current_handler},
|
|
|
|
{"rstcur", "Resets coulomb counter.", _reset_current_handler},
|
2010-10-01 15:24:43 +02:00
|
|
|
#endif
|
2010-11-04 15:05:51 +01:00
|
|
|
{NULL, NULL, NULL}
|
2010-10-01 15:24:43 +02:00
|
|
|
};
|
|
|
|
|