From 5044426949bd05f71b89814cbb6bb144dbf1e5f9 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Tue, 24 Jul 2018 16:18:02 -0700 Subject: [PATCH] nxphlite-v3:Use non data time RTC configuration. One a 32.768 is added (RC16) to the board this will keep time. --- .../nuttx-configs/nxphlite-v3/nsh/defconfig | 2 +- src/drivers/boards/nxphlite-v3/init.c | 21 ------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig b/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig index 6764362467..565fc38de8 100644 --- a/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig +++ b/platforms/nuttx/nuttx-configs/nxphlite-v3/nsh/defconfig @@ -575,7 +575,7 @@ CONFIG_SPI_EXCHANGE=y # CONFIG_TIMER is not set # CONFIG_ONESHOT is not set CONFIG_RTC=y -CONFIG_RTC_DATETIME=y +# CONFIG_RTC_DATETIME is not set # CONFIG_RTC_ALARM is not set # CONFIG_RTC_DRIVER is not set # CONFIG_RTC_EXTERNAL is not set diff --git a/src/drivers/boards/nxphlite-v3/init.c b/src/drivers/boards/nxphlite-v3/init.c index 9d36a23bfe..48e800dd77 100644 --- a/src/drivers/boards/nxphlite-v3/init.c +++ b/src/drivers/boards/nxphlite-v3/init.c @@ -244,29 +244,8 @@ kinetis_boardinitialize(void) /* Power on Spektrum */ VDD_3V3_SPEKTRUM_POWER_EN(true); - } -//FIXME: Stubs -----v -int up_rtc_getdatetime(FAR struct tm *tp); -int up_rtc_getdatetime(FAR struct tm *tp) -{ - tp->tm_sec = 0; - tp->tm_min = 0; - tp->tm_hour = 0; - tp->tm_mday = 30; - tp->tm_mon = 10; - tp->tm_year = 116; - tp->tm_wday = 1; /* Day of the week (0-6) */ - tp->tm_yday = 0; /* Day of the year (0-365) */ - tp->tm_isdst = 0; /* Non-0 if daylight savings time is in effect */ - return 0; -} - - -//FIXME: Stubs -----v - - /**************************************************************************** * Name: board_app_initialize *