mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-28 04:38:55 +08:00
AP_Bootloader: support CAN multicast server
allows for fw update of network peripheral devices
This commit is contained in:
1 parent
f065548866
commit
ef4fce80fb
5 files changed
+48
-5
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user