From e6377641a8461cc4fc0ac8daa9dbfba704ec9325 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 27 Oct 2016 18:04:14 -0600 Subject: [PATCH] sched/Kconfig: Add ranges to START_YEAR, MONTH, and DAY --- arch/xtensa/src/esp32/esp32_serial.c | 6 +++--- sched/Kconfig | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_serial.c b/arch/xtensa/src/esp32/esp32_serial.c index b6ebb6c253..53557b7344 100644 --- a/arch/xtensa/src/esp32/esp32_serial.c +++ b/arch/xtensa/src/esp32/esp32_serial.c @@ -1168,7 +1168,7 @@ static bool esp32_txempty(struct uart_dev_s *dev) ****************************************************************************/ /**************************************************************************** - * Name: up_earlyserialinit + * Name: xtensa_serial_initialize * * Description: * Performs the low level UART initialization early in debug so that the @@ -1178,7 +1178,7 @@ static bool esp32_txempty(struct uart_dev_s *dev) ****************************************************************************/ #ifdef USE_EARLYSERIALINIT -void up_earlyserialinit(void) +void xtensa_serial_initialize(void) { /* NOTE: All GPIO configuration for the UARTs was performed in * esp32_lowsetup @@ -1204,7 +1204,7 @@ void up_earlyserialinit(void) #endif /**************************************************************************** - * Name: up_serialinit + * Name: xtensa_serial_initialize * * Description: * Register serial console and serial ports. This assumes diff --git a/sched/Kconfig b/sched/Kconfig index bf40372785..b10d3e3caf 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -188,15 +188,21 @@ if !RTC config START_YEAR int "Start year" - default 2014 + default 2016 + range 1970 2106 + ---help--- + NuttX uses an unsigned 32-bit integer for time_t which provides a + range from 1970 to 2106. config START_MONTH int "Start month" default 1 + range 1 12 config START_DAY int "Start day" default 1 + range 1 31 endif # !RTC