mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 16:01:18 +01:00
sys/shell: enable RTC commands with rtt_rtc
This commit is contained in:
parent
bc7fb8f678
commit
4fae412027
@ -106,7 +106,7 @@ ifneq (,$(filter lwip_netif,$(USEMODULE)))
|
||||
SRC += sc_lwip_netif.c
|
||||
endif
|
||||
|
||||
ifneq (,$(filter periph_rtc,$(USEMODULE)))
|
||||
ifneq (,$(filter rtt_rtc periph_rtc,$(USEMODULE)))
|
||||
SRC += sc_rtc.c
|
||||
endif
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ extern int _at30tse75x_handler(int argc, char **argv);
|
||||
extern int _saul(int argc, char **argv);
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_PERIPH_RTC
|
||||
#if defined(MODULE_PERIPH_RTC) || defined(MODULE_RTT_RTC)
|
||||
extern int _rtc_handler(int argc, char **argv);
|
||||
#endif
|
||||
|
||||
@ -262,7 +262,7 @@ const shell_command_t _shell_command_list[] = {
|
||||
{ "random_init", "initializes the PRNG", _random_init },
|
||||
{ "random_get", "returns 32 bit of pseudo randomness", _random_get },
|
||||
#endif
|
||||
#ifdef MODULE_PERIPH_RTC
|
||||
#if defined(MODULE_PERIPH_RTC) || defined(MODULE_RTT_RTC)
|
||||
{"rtc", "control RTC peripheral interface", _rtc_handler},
|
||||
#endif
|
||||
#ifdef MODULE_RTT_CMD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user