Move device specific shutdown code from main-nrf52.cpp to the appropriate cariant.cpp files

This commit is contained in:
Jonathan Bennett
2026-01-25 21:54:50 -06:00
parent 87cc321687
commit 6fc895c89e
8 changed files with 81 additions and 59 deletions

View File

@@ -20,4 +20,11 @@ void initVariant()
pinMode(PIN_WD_EN, OUTPUT);
digitalWrite(PIN_WD_EN, HIGH); // Enable the Watchdog at boot
#endif
}
void variant_shutdown()
{
#ifdef PIN_WD_EN
digitalWrite(PIN_WD_EN, LOW);
#endif
}