Atmel Software Framework

common/services/usb/class/composite/host/example1/main.c File Reference

Main functions for USB host mass storage and mouse composite example.

Copyright (C) 2011-2014 Atmel Corporation. All rights reserved.

#include <asf.h>
#include "conf_usb_host.h"
#include "ui.h"
#include "main.h"

Macros

#define MSG_TEST   "Test UHI MSC\n"
 

Functions

int main (void)
 Main function. Execution starts here. More...
 
void main_usb_connection_event (uhc_device_t *dev, bool b_present)
 Notify that a USB device has been connected or disconnected. More...
 
void main_usb_sof_event (void)
 Notify that a SOF has been sent (each 1 ms) More...
 

Variables

static volatile uint8_t lun_state = 0
 
static volatile uint16_t main_usb_sof_counter = 0
 

#define MSG_TEST   "Test UHI MSC\n"

Referenced by main().

void main_usb_connection_event ( uhc_device_t dev,
bool  b_present 
)

Notify that a USB device has been connected or disconnected.

Parameters
devPointer on USB device information
b_presenttrue, if the device has been connected
void main_usb_sof_event ( void  )

Notify that a SOF has been sent (each 1 ms)

volatile uint8_t lun_state = 0
static

Referenced by main(), and main_usb_connection_event().

volatile uint16_t main_usb_sof_counter = 0
static

Referenced by main(), and main_usb_sof_event().