Correct clock initialization. The correct range for the month is 0-11 but is entered as 1-12 in the .config file

This commit is contained in:
Gregory Nutt
2016-10-27 08:32:23 -06:00
parent 57ad019fba
commit 0967864c92
2 changed files with 8 additions and 25 deletions
+8 -1
View File
@@ -319,10 +319,17 @@ void esp32_gpioirqinitialize(void)
g_gpio_cpuint = esp32_alloc_levelint(1);
DEBUGASSERT(g_gpio_cpuint >= 0);
/* Set up to receive peripheral interrupts on the current CPU */
#ifdef CONFIG_SMP
cpu = up_cpu_index();
#else
cpu = 0;
#endif
/* Attach the GPIO peripheral to the allocated CPU interrupt */
up_disable_irq(g_gpio_cpuint);
cpu = up_cpu_index();
esp32_attach_peripheral(cpu, ESP32_PERIPH_CPU_GPIO, g_gpio_cpuint);
/* Attach and enable the interrupt handler */
-24
View File
@@ -45,30 +45,6 @@
#include <nuttx/time.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Private Type Declarations
****************************************************************************/
/****************************************************************************
* Private Function Prototypes
****************************************************************************/
/****************************************************************************
* Public Constant Data
****************************************************************************/
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/