-
Notifications
You must be signed in to change notification settings - Fork 0
/
if.c
37 lines (29 loc) · 1.05 KB
/
if.c
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
#include <stdint.h>
#include <usb_type.h>
#include <usb_core.h>
#include "usb/midi_app.h"
#include "usb/midi_prop.h"
extern void (*pEpInt_IN[7])(void);
extern void (*pEpInt_OUT[7])(void);
extern void (*pCallbacks[8])(void);
extern DEVICE_INFO Device_Info;
extern DEVICE Device_Table;
extern DEVICE_PROP Device_Property;
extern USER_STANDARD_REQUESTS User_Standard_Requests;
extern void Leave_LowPowerMode();
DEVICE_INFO *pDeviceInfo;
DEVICE_INFO *pInformation; // who uses this ??
DEVICE* pDeviceTable;
typedef void (*THandler)(void);
void _Initialize(void* pDeviceInfo, void* pDevice, void* pDeviceProperty, void* pUserStandardRequests,
THandler arrHandlerIn[], THandler arrHandlerOut[], THandler callbacks[], THandler LeaveLowPowerMode);
void InitUsb()
{
pInformation = &Device_Info;
pDeviceInfo = &Device_Info; // for internal use
pDeviceTable = &Device_Table; // for internal use
_Initialize(&Device_Info, &Device_Table, &Device_Property, &User_Standard_Requests, pEpInt_IN, pEpInt_OUT, pCallbacks, Leave_LowPowerMode);
}
void Get_SerialNum()
{
}