|
Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
#include <ch.h>#include <hal.h>#include "usb_msd.h"#include "usbStorage.h"#include "modules/loggers/sdlog_chibios.h"#include <stdio.h>#include <string.h>#include "main_chibios.h"#include "mcu_periph/sdio.h"
Include dependency graph for usbStorage.c:Go to the source code of this file.
Macros | |
| #define | USB_MS_DATA_EP 1 |
| #define | MCU_RESTART() {*((unsigned long *)0x0E000ED0C) = 0x05FA0004;} |
Functions | |
| static uint8_t | nibbleToHex (uint8_t nibble) |
| static void | populateSerialNumberDescriptorData (void) |
| static void | thdUsbStorage (void *arg) |
| static const USBDescriptor * | getDescriptor (USBDriver *usbp, uint8_t type, uint8_t index, uint16_t lang) |
| static void | usbEvent (USBDriver *usbp, usbevent_t event) |
| static void | usbActivity (bool active) |
| static | THD_WORKING_AREA (waThdUsbStorage, 1024) |
| void | usbStorageStartPolling (void) |
| void | usbStorageWaitForDeconnexion (void) |
| void | usbStorageStop (void) |
| bool | usbStorageIsItRunning (void) |
Variables | |
| static thread_t * | usbStorageThreadPtr = NULL |
| static USBMassStorageDriver | UMSD1 |
| static bool | isRunning = false |
| static const uint8_t | deviceDescriptorData [] |
| static const USBDescriptor | deviceDescriptor |
| static const uint8_t | configurationDescriptorData [] |
| static const USBDescriptor | configurationDescriptor |
| static const uint8_t | languageDescriptorData [] |
| static const USBDescriptor | languageDescriptor |
| static const uint8_t | vendorDescriptorData [] |
| static const USBDescriptor | vendorDescriptor |
| static const uint8_t | productDescriptorData [] |
| static const USBDescriptor | productDescriptor |
| uint8_t | serialNumberDescriptorData [50] |
| static const USBDescriptor | serialNumberDescriptor |
| const USBConfig | usbConfig |
| static USBMassStorageConfig | msdConfig |
| #define MCU_RESTART | ( | ) | {*((unsigned long *)0x0E000ED0C) = 0x05FA0004;} |
Definition at line 48 of file usbStorage.c.
Referenced by thdUsbStorage().
| #define USB_MS_DATA_EP 1 |
Definition at line 46 of file usbStorage.c.
|
static |
Definition at line 169 of file usbStorage.c.
References configurationDescriptor, deviceDescriptor, languageDescriptor, productDescriptor, serialNumberDescriptor, and vendorDescriptor.
Definition at line 344 of file usbStorage.c.
Referenced by populateSerialNumberDescriptorData().
Here is the caller graph for this function:
|
static |
Definition at line 351 of file usbStorage.c.
References nibbleToHex().
Referenced by usbStorageStartPolling().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 269 of file usbStorage.c.
References USBMassStorageDriver::evt_connected, GPIOA, GPIOA_OTG_FS_VBUS, isRunning, MCU_RESTART, msdInit(), msdStart(), msdStop(), pprz_terminate_autopilot_threads(), sdio_connect(), sdio_disconnect(), and sdlog_chibios_finish().
Referenced by usbStorageStartPolling().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 224 of file usbStorage.c.
References GPIOC, and GPIOC_LED4.
|
static |
Definition at line 194 of file usbStorage.c.
References msdConfigureHookI().
Here is the call graph for this function:| bool usbStorageIsItRunning | ( | void | ) |
Definition at line 339 of file usbStorage.c.
References isRunning.
Referenced by thd_startlog().
Here is the caller graph for this function:| void usbStorageStartPolling | ( | void | ) |
Definition at line 242 of file usbStorage.c.
References populateSerialNumberDescriptorData(), thdUsbStorage(), and usbStorageThreadPtr.
Referenced by sdlog_chibios_init().
Here is the call graph for this function:
Here is the caller graph for this function:| void usbStorageStop | ( | void | ) |
Definition at line 259 of file usbStorage.c.
References usbStorageThreadPtr.
| void usbStorageWaitForDeconnexion | ( | void | ) |
Definition at line 251 of file usbStorage.c.
References usbStorageThreadPtr.
|
static |
Definition at line 116 of file usbStorage.c.
Referenced by getDescriptor().
|
static |
Definition at line 74 of file usbStorage.c.
|
static |
Definition at line 68 of file usbStorage.c.
Referenced by getDescriptor().
|
static |
Definition at line 51 of file usbStorage.c.
|
static |
Definition at line 43 of file usbStorage.c.
Referenced by thdUsbStorage(), and usbStorageIsItRunning().
|
static |
Definition at line 127 of file usbStorage.c.
Referenced by getDescriptor().
|
static |
Definition at line 122 of file usbStorage.c.
|
static |
Definition at line 230 of file usbStorage.c.
|
static |
Definition at line 149 of file usbStorage.c.
Referenced by getDescriptor().
|
static |
Definition at line 144 of file usbStorage.c.
|
static |
Definition at line 163 of file usbStorage.c.
Referenced by getDescriptor().
| uint8_t serialNumberDescriptorData[50] |
Definition at line 158 of file usbStorage.c.
|
static |
Definition at line 42 of file usbStorage.c.
| const USBConfig usbConfig |
Definition at line 216 of file usbStorage.c.
|
static |
Definition at line 40 of file usbStorage.c.
Referenced by usbStorageStartPolling(), usbStorageStop(), and usbStorageWaitForDeconnexion().
|
static |
Definition at line 138 of file usbStorage.c.
Referenced by getDescriptor().
|
static |
Definition at line 133 of file usbStorage.c.