apps/xplain-bc/xplain-bc.h File Reference

Xplain series board controller commons. More...

#include <spi.h>
#include <workqueue.h>

Go to the source code of this file.

Data Structures

struct  app_usb_mode_task
 Application task struct with shared variables. More...

Functions

void dataflash_init (struct app_usb_mode_task *usb_mode_task)
 Initialize the USB interface and the DataFlash block driver.

Detailed Description

Xplain series board controller commons.

Copyright (C) 2009 - 2010 Atmel Corporation. All rights reserved.

Definition in file xplain-bc.h.


Function Documentation

void dataflash_init ( struct app_usb_mode_task usb_mode_task  ) 

Initialize the USB interface and the DataFlash block driver.

This function will initialize the SPI master, an SPI device, an USB configuration and an USB interface. These instances are then used to setup the DataFlash device, create a block device and eventually share the block device through the USB mass-storage interface.

Definition at line 51 of file dataflash.c.

References dataflash_blkdev_init(), spi_device_get_base(), spi_enable(), spi_master_get_base(), spi_master_init(), spi_master_setup_device(), SPI_MODE_0, udm_config_add_interface(), udm_config_set_bus_powered(), udm_config_set_max_power(), and udm_create_config().

Referenced by main().

Generated on Thu Apr 29 14:10:34 2010 for xplain-bc by  doxygen 1.6.3