core/usb/usb_mass_storage.c File Reference

#include "sceptre.h"
#include "lpcusb\target\type.h"
#include "lpcusb\target\debug.h"
#include "lpcusb\target\usbapi.h"
#include "msc_bot.h"
#include "blockdev.h"

Go to the source code of this file.

Defines

#define __SKIP_FATFS__
#define MAX_PACKET_SIZE   64
#define LE_WORD(x)   ((x)&0xFF),((x)>>8)

Functions

bool_t usb_mass_storage_init (void)
bool_t usb_mass_storage_tick (void)

Detailed Description

Mass storage main interface.

This is based on the mass storage example msc from lpcusb.

Definition in file usb_mass_storage.c.


Function Documentation

bool_t usb_mass_storage_init ( void   ) 

Initialise the USB stack as a mass storage device.

Returns:
true if the initialization was successful.

Definition at line 183 of file usb_mass_storage.c.

bool_t usb_mass_storage_tick ( void   ) 

Run the USB stack.

Call as often and fast as possible.

Returns:
true.

Definition at line 224 of file usb_mass_storage.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated by  doxygen 1.6.2