USB: add central file to define USB IDs, classes, and endpoints

Change-Id: Iba81f32a92c68a973e8e7adbc4c2a1064ba5290f
This commit is contained in:
Kévin Redon
2018-07-01 18:11:01 +02:00
committed by King Kévin
parent 42bd026416
commit a1012b170a
11 changed files with 121 additions and 105 deletions

View File

@@ -5,21 +5,8 @@
#include "board.h"
#include <usb/device/dfu/dfu.h>
/* Endpoint numbers */
#define DATAOUT 1
#define DATAIN 2
#define INT 3
#define BUFLEN 512
#define PHONE_DATAOUT 4
#define PHONE_DATAIN 5
#define PHONE_INT 6
#define CARDEM_USIM2_DATAOUT DATAOUT
#define CARDEM_USIM2_DATAIN DATAIN
#define CARDEM_USIM2_INT INT
#define CLK_MASTER true
#define CLK_SLAVE false