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

@@ -36,3 +36,10 @@ void initVariant()
pinMode(PIN_LED1, OUTPUT);
ledOff(PIN_LED1);
}
void variant_shutdown()
{
nrf_gpio_cfg_default(PIN_GPS_PPS);
detachInterrupt(PIN_GPS_PPS);
detachInterrupt(PIN_BUTTON1);
}