-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUSBconstant.h
32 lines (27 loc) · 839 Bytes
/
USBconstant.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
#ifndef __USB_CONST_DATA_H__
#define __USB_CONST_DATA_H__
#include <stdint.h>
#include "include/ch5xx.h"
#include "include/ch5xx_usb.h"
#define EP0_ADDR 0
#define EP1_ADDR 0
#define EP2_ADDR 72
extern __code uint8_t DevDesc[];
extern __code uint8_t CfgDesc[];
extern __code uint8_t HidDesc[];
extern __code uint8_t LangDes[];
extern __code uint8_t ReportDesc[];
extern __code uint8_t ReportDesc2[];
extern __code uint8_t Prod_Des[];
extern __code uint8_t Manuf_Des[];
extern __code uint8_t Seri_Des[];
extern __code uint16_t DevDescLen;
extern __code uint16_t CfgDescLen;
extern __code uint16_t HidDescLen;
extern __code uint16_t LangDesLen;
extern __code uint16_t ReportDescLen;
extern __code uint16_t ReportDescLen2;
extern __code uint16_t Prod_DesLen;
extern __code uint16_t Manuf_DesLen;
extern __code uint16_t Seri_DesLen;
#endif