From 03cd2c005d77aae6d0e8aa78fd8b2fd5f45f55e6 Mon Sep 17 00:00:00 2001 From: shaojinchun Date: Mon, 27 Aug 2018 18:33:03 +0800 Subject: [PATCH] Add the definition of RT_VBUS_USING_FLOW_CONTROL to vbus_api.h --- bsp/qemu-vexpress-gemini/.config | 1 - bsp/qemu-vexpress-gemini/rtconfig.h | 1 - components/vbus/Kconfig | 6 ------ components/vbus/share_hdr/vbus_api.h | 2 ++ 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/bsp/qemu-vexpress-gemini/.config b/bsp/qemu-vexpress-gemini/.config index a403198e7..02c5ee7d1 100644 --- a/bsp/qemu-vexpress-gemini/.config +++ b/bsp/qemu-vexpress-gemini/.config @@ -179,7 +179,6 @@ CONFIG_RT_USING_POSIX=y CONFIG_RT_USING_VBUS=y # CONFIG_RT_USING_VBUS_RFS is not set # CONFIG_RT_USING_VBUS_RSHELL is not set -CONFIG_RT_VBUS_USING_FLOW_CONTROL=y CONFIG_RT_VBUS_USING_TESTS=y CONFIG__RT_VBUS_RING_BASE=0x6f800000 CONFIG__RT_VBUS_RING_SZ=2097152 diff --git a/bsp/qemu-vexpress-gemini/rtconfig.h b/bsp/qemu-vexpress-gemini/rtconfig.h index a5b23d160..a1dcba124 100644 --- a/bsp/qemu-vexpress-gemini/rtconfig.h +++ b/bsp/qemu-vexpress-gemini/rtconfig.h @@ -162,7 +162,6 @@ #define RT_USING_VBUS /* RT_USING_VBUS_RFS is not set */ /* RT_USING_VBUS_RSHELL is not set */ -#define RT_VBUS_USING_FLOW_CONTROL #define RT_VBUS_USING_TESTS #define _RT_VBUS_RING_BASE 0x6f800000 #define _RT_VBUS_RING_SZ 2097152 diff --git a/components/vbus/Kconfig b/components/vbus/Kconfig index c1afca994..cd30874e3 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 3ad2a9ae6..4425bb448 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 -- GitLab