|
@@ -14,6 +14,7 @@
|
|
|
#include "plat_config.h"
|
|
|
#include "os_exception.h"
|
|
|
#include "debug_log.h"
|
|
|
+#include "Signal.h"
|
|
|
#if (WDT_FEATURE_ENABLE==1)
|
|
|
#include "wdt_ec616.h"
|
|
|
#define WDT_TIMEOUT_VALUE (20) // in unit of second, shall be less than 256s
|
|
@@ -221,7 +222,7 @@ void BSP_CustomInit(void)
|
|
|
|
|
|
PMU_WakeupPadInit();
|
|
|
NVIC_EnableIRQ(PadWakeup0_IRQn);//can
|
|
|
- NVIC_EnableIRQ(PadWakeup1_IRQn);//rx
|
|
|
+ NVIC_DisableIRQ(PadWakeup1_IRQn);//rx
|
|
|
NVIC_EnableIRQ(PadWakeup2_IRQn);//lock
|
|
|
NVIC_EnableIRQ(PadWakeup3_IRQn);//gsensor
|
|
|
NVIC_EnableIRQ(PadWakeup4_IRQn);//gsensor
|
|
@@ -265,7 +266,13 @@ void Pad0_WakeupIntHandler(void)
|
|
|
void Pad1_WakeupIntHandler(void)
|
|
|
{
|
|
|
if(slpManExtIntPreProcess(PadWakeup1_IRQn)==false)
|
|
|
+ {
|
|
|
return;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ RxFlag = 1;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void Pad2_WakeupIntHandler(void)
|