summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorPeter Lawrence <[email protected]>2020-03-02 21:15:01 -0600
committerPeter Lawrence <[email protected]>2020-03-02 21:15:01 -0600
commitfee79d746604f671483f5872337ea366f2d2c1a2 (patch)
treeee71a19c377efb01ec3891eb01ae86f0c4a76420 /src/tusb_option.h
parent43025b2ae395b6f3c3ed725e3c4b31f15786d65e (diff)
add CDC-ECM/RNDIS/CDC-EEM network device class with example
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 97f14532f..00d4a39dc 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -117,6 +117,15 @@
#define OPT_MODE_HIGH_SPEED 0x10 ///< High speed
/** @} */
+/** \defgroup group_supported_netif Supported Network Interface
+ * \ref CFG_TUD_NET must be defined to one of these
+ * @{ */
+#define OPT_NET_NONE 0 ///< No network interface
+#define OPT_NET_ECM 1 ///< CDC-ECM
+#define OPT_NET_RNDIS 2 ///< RNDIS
+#define OPT_NET_EEM 3 ///< CDC-EEM
+/** @} */
+
#ifndef CFG_TUSB_RHPORT0_MODE
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_NONE
#endif
@@ -204,6 +213,9 @@
#define CFG_TUD_DFU_RT 0
#endif
+#ifndef CFG_TUD_NET
+ #define CFG_TUD_NET 0
+#endif
//--------------------------------------------------------------------
// HOST OPTIONS