AP_Bootloader: support CAN multicast server

allows for fw update of network peripheral devices
This commit is contained in:
Andrew Tridgell committed 2024-09-17 10:02:29 +10:00
1 parent f065548866
commit ef4fce80fb
5 files changed
+48 -5

No files matched your search

+11
View File
@@ -364,6 +364,17 @@ void thread_sleep_ms(uint32_t ms)
}
}
void thread_sleep_us(uint32_t us)
{
while (us > 0) {
// don't sleep more than 65 at a time, to cope with 16 bit
// timer
const uint32_t dt = us > 6500? 6500: us;
chThdSleepMicroseconds(dt);
us -= dt;
}
}
// generate a pulse sequence forever, for debugging
void led_pulses(uint8_t npulses)
{