34 #include "main_chibios.h"
60 (BaseBlockDevice *) &SDCD1,
100 chRegSetThreadName(
"UsbStorage:polling");
102 event_listener_t connected;
104 while (!chThdShouldTerminateX() && antiBounce) {
112 chThdSleepMilliseconds(20);
115 chRegSetThreadName(
"UsbStorage:connected");
124 chThdExit(MSG_TIMEOUT);
132 chEvtWaitOne(EVENT_MASK(1));
139 chThdSleepMilliseconds(10);
144 chThdSleepMilliseconds(500);
static void usbActivity(bool active)
arch independent SDIO API
void sdlog_chibios_finish(const bool flush)
#define SDLOG_USB_VBUS_PIN
static thread_t * usbStorageThreadPtr
bool sdio_connect(void)
Connect a SD card on SDIO peripheral.
void deinit_msd_driver(void)
static void mcu_reset(void)
Request a software reset of the MCU.
static void thdUsbStorage(void *arg)
Driver configuration structure.
void usbStorageStartPolling(void)
#define SDLOG_USB_VBUS_PORT
void pprz_terminate_autopilot_threads(void)
Terminate all autopilot threads Wait until proper stop.
void init_msd_driver(void *dbgThreadPtr, USBMassStorageConfig *msdConfig)
static USBMassStorageConfig msdConfig
Arch independent mcu ( Micro Controller Unit ) utilities.
void usbStorageWaitForDeconnexion(void)
void msd_register_evt_connected(event_listener_t *elp, eventmask_t mask)
register connected event source in local event mask
arch independent LED (Light Emitting Diodes) API
bool usbStorageIsItRunning(void)
void usbStorageStop(void)
static THD_WORKING_AREA(waThdUsbStorage, 1024)