-
Notifications
You must be signed in to change notification settings - Fork 2
/
usb_start.h
39 lines (30 loc) · 859 Bytes
/
usb_start.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Code generated from Atmel Start.
*
* This file will be overwritten when reconfiguring your Atmel Start project.
* Please copy examples or other code you want to keep to a separate file or main.c
* to avoid loosing it when reconfiguring.
*/
#ifndef USB_DEVICE_MAIN_H
#define USB_DEVICE_MAIN_H
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#include "mscdf.h"
#include "mscdf_desc.h"
void usbd_msc_init(void);
void usbd_msc_example(void);
/**
* \berif Initialize USB
*/
void usb_init(void);
enum usb_volume_state {NOT_READY, READY};
// Any call to this method will cause a UNIT_ATTENTION until a ready
// check is done, and then will take on the new state
void set_state(enum usb_volume_state state);
// call this from the main event loop
void disk_task(void);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // USB_DEVICE_MAIN_H