diff --git a/.config b/.config index eae0222..e70ee33 100644 --- a/.config +++ b/.config @@ -75,9 +75,7 @@ CONFIG_RT_USING_DEVICE=y # CONFIG_RT_USING_INTERRUPT_INFO is not set # CONFIG_RT_USING_THREADSAFE_PRINTF is not set # CONFIG_RT_USING_SCHED_THREAD_CTX is not set -CONFIG_RT_USING_CONSOLE=y -CONFIG_RT_CONSOLEBUF_SIZE=128 -CONFIG_RT_CONSOLE_DEVICE_NAME="vcom" +# CONFIG_RT_USING_CONSOLE is not set CONFIG_RT_VER_NUM=0x50100 # CONFIG_RT_USING_STDC_ATOMIC is not set CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32 @@ -97,7 +95,6 @@ CONFIG_RT_USING_USER_MAIN=y CONFIG_RT_MAIN_THREAD_STACK_SIZE=1536 CONFIG_RT_MAIN_THREAD_PRIORITY=10 # CONFIG_RT_USING_LEGACY is not set -# CONFIG_RT_USING_MSH is not set # # DFS: device virtual file system @@ -152,26 +149,8 @@ CONFIG_RT_USING_PIN=y # # Using USB # -CONFIG_RT_USING_USB=y # CONFIG_RT_USING_USB_HOST is not set -CONFIG_RT_USING_USB_DEVICE=y -CONFIG_RT_USBD_THREAD_STACK_SZ=2048 -CONFIG_USB_VENDOR_ID=0x0FFE -CONFIG_USB_PRODUCT_ID=0x0001 -# CONFIG_RT_USB_DEVICE_COMPOSITE is not set -# CONFIG__RT_USB_DEVICE_NONE is not set -CONFIG__RT_USB_DEVICE_CDC=y -# CONFIG__RT_USB_DEVICE_MSTORAGE is not set -# CONFIG__RT_USB_DEVICE_HID is not set -# CONFIG__RT_USB_DEVICE_WINUSB is not set -# CONFIG__RT_USB_DEVICE_AUDIO is not set -CONFIG_RT_USB_DEVICE_CDC=y -CONFIG_RT_VCOM_TASK_STK_SIZE=512 -CONFIG_RT_CDC_RX_BUFSIZE=128 -# CONFIG_RT_VCOM_TX_USE_DMA is not set -CONFIG_RT_VCOM_SERNO="32021919830108" -CONFIG_RT_VCOM_SER_LEN=14 -CONFIG_RT_VCOM_TX_TIMEOUT=1000 +# CONFIG_RT_USING_USB_DEVICE is not set # end of Using USB # end of Device Drivers @@ -1281,7 +1260,7 @@ CONFIG_SOC_SERIES_STM32F1=y # On-chip Peripheral Drivers # CONFIG_BSP_USING_GPIO=y -CONFIG_BSP_USING_USBD=y +# CONFIG_BSP_USING_USBD is not set CONFIG_BSP_USING_UART=y CONFIG_BSP_USING_UART1=y # CONFIG_BSP_UART1_RX_USING_DMA is not set diff --git a/applications/main.c b/applications/main.c index 18dcaaf..dc792fb 100644 --- a/applications/main.c +++ b/applications/main.c @@ -28,9 +28,9 @@ static void task_com_entry(void *arg) { com_task(); } int main(void) { - rt_device_t vcom = rt_device_find("vcom"); - rt_device_open(vcom, RT_DEVICE_FLAG_RDWR); - rt_console_set_device("vcom"); + // rt_device_t vcom = rt_device_find("vcom"); + // rt_device_open(vcom, RT_DEVICE_FLAG_RDWR); + // rt_console_set_device("vcom"); u3 = rt_device_find("uart3"); rt_device_open(u3, RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_INT_TX | diff --git a/rtconfig.h b/rtconfig.h index f272c3c..5d1453a 100644 --- a/rtconfig.h +++ b/rtconfig.h @@ -44,9 +44,6 @@ #define RT_USING_HEAP /* end of Memory Management */ #define RT_USING_DEVICE -#define RT_USING_CONSOLE -#define RT_CONSOLEBUF_SIZE 128 -#define RT_CONSOLE_DEVICE_NAME "vcom" #define RT_VER_NUM 0x50100 #define RT_BACKTRACE_LEVEL_MAX_NR 32 /* end of RT-Thread Kernel */ @@ -78,18 +75,6 @@ /* Using USB */ -#define RT_USING_USB -#define RT_USING_USB_DEVICE -#define RT_USBD_THREAD_STACK_SZ 2048 -#define USB_VENDOR_ID 0x0FFE -#define USB_PRODUCT_ID 0x0001 -#define _RT_USB_DEVICE_CDC -#define RT_USB_DEVICE_CDC -#define RT_VCOM_TASK_STK_SIZE 512 -#define RT_CDC_RX_BUFSIZE 128 -#define RT_VCOM_SERNO "32021919830108" -#define RT_VCOM_SER_LEN 14 -#define RT_VCOM_TX_TIMEOUT 1000 /* end of Using USB */ /* end of Device Drivers */ @@ -339,7 +324,6 @@ /* On-chip Peripheral Drivers */ #define BSP_USING_GPIO -#define BSP_USING_USBD #define BSP_USING_UART #define BSP_USING_UART1 #define BSP_USING_UART2