File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -700,6 +700,9 @@ void vPortYieldFromTick( void )
700700{
701701 portSAVE_CONTEXT ();
702702 sleep_reset (); /* reset the sleep_mode() faster than sleep_disable(); */
703+ #if defined(__LGT8FX8P__ ) || defined(__LGT8FX8E__ ) || defined(__LGT8FX8P48__ )
704+ wdt_reset (); /* Logic Green requires the WDT be reset when it expires */
705+ #endif
703706 if ( xTaskIncrementTick () != pdFALSE )
704707 {
705708 vTaskSwitchContext ();
@@ -720,7 +723,11 @@ void prvSetupTimerInterrupt( void )
720723 wdt_reset ();
721724
722725 /* set up WDT Interrupt (rather than the WDT Reset). */
726+ #if defined(__LGT8FX8P__ ) || defined(__LGT8FX8E__ ) || defined(__LGT8FX8P48__ )
727+ wdt_ienable ( portUSE_WDTO );
728+ #else
723729 wdt_interrupt_enable ( portUSE_WDTO );
730+ #endif
724731}
725732
726733#else
You can’t perform that action at this time.
0 commit comments