code review: add NCM options in example config
This commit is contained in:
@@ -82,6 +82,16 @@
|
|||||||
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
|
#define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// number of NCM transfer blocks for reception side (only valid if NCM is selected below)
|
||||||
|
#ifndef CFG_TUD_NCM_OUT_NTB_N
|
||||||
|
#define CFG_TUD_NCM_OUT_NTB_N 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// number of NCM transfer blocks for transmission side (only valid if NCM is selected below)
|
||||||
|
#ifndef CFG_TUD_NCM_IN_NTB_N
|
||||||
|
#define CFG_TUD_NCM_IN_NTB_N 3
|
||||||
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// DEVICE CONFIGURATION
|
// DEVICE CONFIGURATION
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
@@ -94,8 +104,8 @@
|
|||||||
|
|
||||||
// Network class has 2 drivers: ECM/RNDIS and NCM.
|
// Network class has 2 drivers: ECM/RNDIS and NCM.
|
||||||
// Only one of the drivers can be enabled
|
// Only one of the drivers can be enabled
|
||||||
#define CFG_TUD_ECM_RNDIS 1
|
#define CFG_TUD_ECM_RNDIS 0
|
||||||
#define CFG_TUD_NCM (1-CFG_TUD_ECM_RNDIS)
|
#define CFG_TUD_NCM (1-CFG_TUD_ECM_RNDIS)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user