static analysis: add comments to empty while loops

This commit is contained in:
Joey Castillo
2022-04-10 15:07:58 -04:00
parent 7b06d7d6fd
commit 405f010ade
3 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ void watch_register_extwake_callback(uint8_t pin, ext_irq_cb_t callback, bool le
// disable the RTC
RTC->MODE2.CTRLA.bit.ENABLE = 0;
while (RTC->MODE2.SYNCBUSY.bit.ENABLE);
while (RTC->MODE2.SYNCBUSY.bit.ENABLE); // wait for RTC to be disabled
// update the configuration
RTC->MODE2.TAMPCTRL.reg = config;