sched/Kconfig: Add ranges to START_YEAR, MONTH, and DAY

This commit is contained in:
Gregory Nutt 2016-10-27 18:04:14 -06:00
parent 6ed5d4b20c
commit e6377641a8
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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