Replacing usleep with px4_usleep

This is a step towards isolating time from the system.
This commit is contained in:
Julian Oes
2018-12-22 10:32:18 +01:00
parent e485885344
commit 5b9dea5604
112 changed files with 339 additions and 305 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ bl_update_main(int argc, char *argv[])
}
PX4_INFO("image validated, erasing bootloader...");
usleep(10000);
px4_usleep(10000);
/* prevent other tasks from running while we do this */
sched_lock();
@@ -232,7 +232,7 @@ setopt(void)
/* program the new option value */
*optcr = (*optcr & ~opt_mask) | opt_bits | (1 << 1);
usleep(1000);
px4_usleep(1000);
if ((*optcr & opt_mask) == opt_bits) {
PX4_INFO("option bits set");