34 #include "main_chibios.h"
60 (BaseBlockDevice *) &SDCD1,
100 chRegSetThreadName(
"UsbStorage:polling");
101 event_listener_t connected;
107 chThdSleepMilliseconds(10);
111 chRegSetThreadName(
"UsbStorage:connected");
120 chThdExit(MSG_TIMEOUT);
128 chEvtWaitOne(EVENT_MASK(1));
135 chThdSleepMilliseconds(10);
140 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)