Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ASF USB Device MSC

Human interface on SAM4S-EK:

Introduction

This example shows how to implement a USB Device Mass Storage on Atmel MCU products with USB module.

Startup

The example uses all memories available on the board and connects these to USB Device Mass Storage stack. After loading firmware, connect hardware board (EVKxx,Xplain,...) to the USB Host. When connected to a USB host system this application allows to display all available memories as a removable disks in the Unix/Mac/Windows operating systems.

Note
This example uses the native MSC driver on Unix/Mac/Windows OS, except for Win98.
  • Led 0 (D2) blinks when USB host has checked and enabled MSC interface
  • Led 1 (D3) is on during read/write operation

About example

The example uses the following module groups:

  • Basic modules: Startup, board, clock, interrupt, power management
  • USB Device stack and MSC modules:
    services/usb/
    services/usb/udc/
    services/usb/class/msc/
  • Specific implementation:
    • main.c,
      initializes clock
      initializes interrupt
      manages UI
    • specific implementation for each target "./examples/product_board/":
      • conf_foo.h configuration of each module
      • ui.c implement of user's interface (leds)

FreeRTOS