1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sam0 flashpage: minor code style fixes

This commit is contained in:
Federico Pellegrin 2019-01-29 20:58:46 +01:00
parent 051be66b76
commit 409d83e087

View File

@ -94,7 +94,7 @@ void flashpage_write_raw(void *target_addr, const void *data, size_t len)
}
_NVMCTRL->CTRLA.reg = (NVMCTRL_CTRLA_CMDEX_KEY | NVMCTRL_CTRLA_CMD_WP);
#ifdef CPU_SAML1X
while(!_NVMCTRL->STATUS.bit.READY) {}
while (!_NVMCTRL->STATUS.bit.READY) {}
#else
while (!_NVMCTRL->INTFLAG.bit.READY) {}
#endif
@ -117,7 +117,7 @@ void flashpage_write(int page, const void *data)
#endif
_NVMCTRL->CTRLA.reg = (NVMCTRL_CTRLA_CMDEX_KEY | NVMCTRL_CTRLA_CMD_ER);
#ifdef CPU_SAML1X
while(!_NVMCTRL->STATUS.bit.READY) {}
while (!_NVMCTRL->STATUS.bit.READY) {}
#else
while (!_NVMCTRL->INTFLAG.bit.READY) {}
#endif