add ncm.h for magic number

mostly clean up magic number
This commit is contained in:
hathach
2021-10-11 12:36:03 +07:00
parent a8eea9f6a5
commit a6723f556d
5 changed files with 141 additions and 63 deletions

View File

@@ -34,6 +34,8 @@
#error "Cannot enable both ECM_RNDIS and NCM network drivers"
#endif
#include "ncm.h"
/* declared here, NOT in usb_descriptors.c, so that the driver can intelligently ZLP as needed */
#define CFG_TUD_NET_ENDPOINT_SIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)