sched/Kconfig: Add ranges to START_YEAR, MONTH, and DAY
This commit is contained in:
parent
6ed5d4b20c
commit
e6377641a8
@ -1168,7 +1168,7 @@ static bool esp32_txempty(struct uart_dev_s *dev)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_earlyserialinit
|
* Name: xtensa_serial_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Performs the low level UART initialization early in debug so that the
|
* 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
|
#ifdef USE_EARLYSERIALINIT
|
||||||
void up_earlyserialinit(void)
|
void xtensa_serial_initialize(void)
|
||||||
{
|
{
|
||||||
/* NOTE: All GPIO configuration for the UARTs was performed in
|
/* NOTE: All GPIO configuration for the UARTs was performed in
|
||||||
* esp32_lowsetup
|
* esp32_lowsetup
|
||||||
@ -1204,7 +1204,7 @@ void up_earlyserialinit(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_serialinit
|
* Name: xtensa_serial_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Register serial console and serial ports. This assumes
|
* Register serial console and serial ports. This assumes
|
||||||
|
@ -188,15 +188,21 @@ if !RTC
|
|||||||
|
|
||||||
config START_YEAR
|
config START_YEAR
|
||||||
int "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
|
config START_MONTH
|
||||||
int "Start month"
|
int "Start month"
|
||||||
default 1
|
default 1
|
||||||
|
range 1 12
|
||||||
|
|
||||||
config START_DAY
|
config START_DAY
|
||||||
int "Start day"
|
int "Start day"
|
||||||
default 1
|
default 1
|
||||||
|
range 1 31
|
||||||
|
|
||||||
endif # !RTC
|
endif # !RTC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user