mirror of
https://github.com/oltaco/Adafruit_nRF52_Bootloader_OTAFIX.git
synced 2026-10-23 08:43:37 +00:00
Make sure all pins are in reset state on teardown
This commit is contained in:
1 parent
e2e220a505
commit
7d59a758da
1 file changed
+7
@@ -115,6 +115,13 @@ void board_teardown(void)
|
||||
|
||||
// Stop LF clock
|
||||
NRF_CLOCK->TASKS_LFCLKSTOP = 1UL;
|
||||
|
||||
// make sure all pins are back in reset state
|
||||
for (int i = 0; i < 32; ++i)
|
||||
{
|
||||
NRF_P0->PIN_CNF[i] = 2;
|
||||
NRF_P1->PIN_CNF[i] = 2;
|
||||
}
|
||||
}
|
||||
|
||||
static uint32_t _systick_count = 0;
|
||||
|
||||
Reference in new issue
Block a user