Files
ardupilot/libraries/AP_HAL_ChibiOS/USB_MSD.h
T
Andrew Tridgell cf57b7c86a AP_HAL_ChibiOS: add early USB microSD service
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.
2026-08-28 17:18:39 +10:00

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
}