summaryrefslogtreecommitdiff
path: root/components/vbus
diff options
context:
space:
mode:
authorshaojinchun <[email protected]>2018-08-27 18:33:03 +0800
committershaojinchun <[email protected]>2018-08-27 18:33:03 +0800
commit03cd2c005d77aae6d0e8aa78fd8b2fd5f45f55e6 (patch)
treeb983a949e6331298206ecbcbac979c035074c94f /components/vbus
parent84e8c6568337fee7f6daa936cb1b822c1154b4e6 (diff)
Add the definition of RT_VBUS_USING_FLOW_CONTROL to vbus_api.h
Diffstat (limited to 'components/vbus')
-rw-r--r--components/vbus/Kconfig6
-rw-r--r--components/vbus/share_hdr/vbus_api.h2
2 files changed, 2 insertions, 6 deletions
diff --git a/components/vbus/Kconfig b/components/vbus/Kconfig
index c1afca994f..cd30874e38 100644
--- a/components/vbus/Kconfig
+++ b/components/vbus/Kconfig
@@ -19,12 +19,6 @@ if RT_USING_VBUS
When enable remote shell, the finsh/msh of RT-Thread can be operated from another
Operating System.
- config RT_VBUS_USING_FLOW_CONTROL
- bool "Enable flow control on VBUS "
- default n
- help
- Enable manage the rate of data transmission
-
config RT_VBUS_USING_TESTS
bool "Enable tests on VBUS "
default n
diff --git a/components/vbus/share_hdr/vbus_api.h b/components/vbus/share_hdr/vbus_api.h
index 3ad2a9ae68..4425bb448a 100644
--- a/components/vbus/share_hdr/vbus_api.h
+++ b/components/vbus/share_hdr/vbus_api.h
@@ -1,6 +1,8 @@
#ifndef __VBUS_API_H__
#define __VBUS_API_H__
+#define RT_VBUS_USING_FLOW_CONTROL
+
#define RT_VBUS_CHANNEL_NR 32
#define RT_VBUS_BLK_HEAD_SZ 4