瀏覽代碼

更新fastboot工程:屏蔽fasboot工程rtc模块看门狗功能。
因要求程序运行时间需大于其配置时间,关闭RTC看门狗才会生效。为避免实际应用场景运行实际小于其配置时间,从而导致配置不生效,产生非预期结果,故将其功能屏蔽。

helen 5 天之前
父節點
當前提交
fc80c70446

+ 1 - 1
amt630hv160-fastboot/src/ArkmicroFiles/libcpu-amt630hv160/include/amt630hv160_rtc.h

@@ -75,7 +75,7 @@ typedef enum {
 /* Exported functions ------------------------------------------------------- */
 /* Exported functions ------------------------------------------------------- */
 int RTC_SendCmd(eRTCCmd cmd, int enable);
 int RTC_SendCmd(eRTCCmd cmd, int enable);
 int RTC_WriteReg(eRTCCmd cmd, vu32 *reg, u32 value);
 int RTC_WriteReg(eRTCCmd cmd, vu32 *reg, u32 value);
-void RTC_SetWatchdog(eRTCWdtTmo tmo, int enable);
+//void RTC_SetWatchdog(eRTCWdtTmo tmo, int enable);
 void RTC_PowerDown(int fastboot);
 void RTC_PowerDown(int fastboot);
 void RTC_CanStbOut(int id, int value);
 void RTC_CanStbOut(int id, int value);
 void RTC_SetWakeup(eRTCWakeupSource src, eRTCWakeupMode mode, int enable);
 void RTC_SetWakeup(eRTCWakeupSource src, eRTCWakeupMode mode, int enable);

+ 2 - 2
amt630hv160-fastboot/src/ArkmicroFiles/libcpu-amt630hv160/source/amt630hv160_rtc.c

@@ -64,6 +64,7 @@ retry:
 	return 0;
 	return 0;
 }
 }
 
 
+/*
 void RTC_SetWatchdog(eRTCWdtTmo tmo, int enable)
 void RTC_SetWatchdog(eRTCWdtTmo tmo, int enable)
 {
 {
 	if (tmo < RTC_WDT_NOCHANGE) {
 	if (tmo < RTC_WDT_NOCHANGE) {
@@ -77,6 +78,7 @@ void RTC_SetWatchdog(eRTCWdtTmo tmo, int enable)
 	else
 	else
 		RTC_SendCmd(RTC_WDTEn, 0);
 		RTC_SendCmd(RTC_WDTEn, 0);
 }
 }
+*/
 
 
 __attribute__( ( section( "realocate_functions" ) ) )
 __attribute__( ( section( "realocate_functions" ) ) )
 static void RTC_SendCmdRelocate(eRTCCmd cmd, int enable)
 static void RTC_SendCmdRelocate(eRTCCmd cmd, int enable)
@@ -105,8 +107,6 @@ void RTC_PowerDown(int fastboot)
 {
 {
 	u32 val = RTC->PARA;
 	u32 val = RTC->PARA;
 
 
-	RTC_SetWatchdog(RTC_WDT_2S, 1);
-
 	val &= ~(0xffff << 16);
 	val &= ~(0xffff << 16);
 	if (fastboot) {
 	if (fastboot) {
 		RTC_WriteReg(RTC_PARA, &RTC->PARA, val | 0x5a << 24 | 0xa5 << 16);
 		RTC_WriteReg(RTC_PARA, &RTC->PARA, val | 0x5a << 24 | 0xa5 << 16);