1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

examples/default: use periph/rtc instead of rtc

The rtc module is deprecated and will be removed.
This commit is contained in:
Ludwig Ortmann 2014-11-20 18:26:48 +01:00
parent 3729789dc3
commit 8ec17560e4
2 changed files with 9 additions and 0 deletions

View File

@ -37,6 +37,7 @@ USEMODULE += vtimer
USEMODULE += defaulttransceiver
FEATURES_OPTIONAL += transceiver
FEATURES_OPTIONAL += periph_rtc
ifneq (,$(filter msb-430,$(BOARD)))
USEMODULE += sht11

View File

@ -31,6 +31,10 @@
#include "shell_commands.h"
#include "board_uart0.h"
#if FEATURE_PERIPH_RTC
#include "periph/rtc.h"
#endif
#ifdef MODULE_LTC4150
#include "ltc4150.h"
#endif
@ -156,6 +160,10 @@ int main(void)
init_transceiver();
#endif
#ifdef FEATURE_PERIPH_RTC
rtc_init();
#endif
(void) puts("Welcome to RIOT!");
shell_init(&shell, NULL, UART0_BUFSIZE, shell_readc, shell_putchar);