mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Add an early boot service that exports the microSD block device over USB mass storage before the filesystem and normal flight application start. The service retains exclusive ownership until a power cycle and continues servicing the watchdog. Enable the service on supported boards, provide explicit build control, increase the MSD worker stacks for the SD wait path, scope the ChibiOS fixed-width serial warning suppression to the MSD object, and reject explicit enable requests on unsupported boards.
16 lines
268 B
C++
16 lines
268 B
C++
#pragma once
|
|
|
|
#ifndef HAL_USB_MSD_BOOT_ENABLED
|
|
#define HAL_USB_MSD_BOOT_ENABLED 0
|
|
#endif
|
|
|
|
namespace ChibiOS {
|
|
|
|
#if AP_REBOOT_MASS_STORAGE_ENABLED && HAL_USB_MSD_BOOT_ENABLED
|
|
bool usb_msd_boot_requested();
|
|
void usb_msd_set_boot_request();
|
|
void usb_msd_run();
|
|
#endif
|
|
|
|
}
|