From ee121d25dcaaf138d97f78e5ea3361f9e0388b0a Mon Sep 17 00:00:00 2001 From: Yaochenger <75192526+Yaochenger@users.noreply.github.com> Date: Fri, 10 Feb 2023 11:55:52 +0800 Subject: [PATCH] =?UTF-8?q?[RTduino][ch32v208]=E4=BF=AE=E6=AD=A3rtconfig.h?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=20(#6920)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/wch/risc-v/ch32v208w-r0/.config | 58 ++++---------------------- bsp/wch/risc-v/ch32v208w-r0/rtconfig.h | 28 +------------ 2 files changed, 9 insertions(+), 77 deletions(-) diff --git a/bsp/wch/risc-v/ch32v208w-r0/.config b/bsp/wch/risc-v/ch32v208w-r0/.config index cf3d4a1360..5bc651630d 100644 --- a/bsp/wch/risc-v/ch32v208w-r0/.config +++ b/bsp/wch/risc-v/ch32v208w-r0/.config @@ -134,7 +134,9 @@ CONFIG_RT_USING_PWM=y # CONFIG_RT_USING_MTD_NAND is not set # CONFIG_RT_USING_PM is not set # CONFIG_RT_USING_FDT is not set -# CONFIG_RT_USING_RTC is not set +CONFIG_RT_USING_RTC=y +# CONFIG_RT_USING_ALARM is not set +# CONFIG_RT_USING_SOFT_RTC is not set # CONFIG_RT_USING_SDIO is not set # CONFIG_RT_USING_SPI is not set # CONFIG_RT_USING_WDT is not set @@ -181,8 +183,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # Socket is in the 'Network' category # -CONFIG_RT_USING_CPLUSPLUS=y -# CONFIG_RT_USING_CPLUSPLUS11 is not set +# CONFIG_RT_USING_CPLUSPLUS is not set # # Network @@ -745,20 +746,7 @@ CONFIG_RT_USING_CPLUSPLUS=y # # Arduino libraries # -CONFIG_PKG_USING_RTDUINO=y -CONFIG_PKG_RTDUINO_PATH="/packages/arduino/RTduino" -# CONFIG_RTDUINO_NO_SETUP_LOOP is not set -CONFIG_RTDUINO_THREAD_SIZE=1536 -CONFIG_RTDUINO_THREAD_PRIO=30 -# CONFIG_RTDUINO_TINY_MODE is not set -# CONFIG_RTDUINO_SUPPORT_FLOAT_STRING is not set -# CONFIG_RTDUINO_USING_WIRE is not set -# CONFIG_RTDUINO_USING_SPI is not set -# CONFIG_RTDUINO_USING_SERVO is not set -# CONFIG_RTDUINO_USING_USBSERIAL is not set -# CONFIG_RTDUINO_USING_SHELL_CMD is not set -CONFIG_PKG_USING_RTDUINO_LATEST_VERSION=y -CONFIG_PKG_RTDUINO_VER="latest" +# CONFIG_PKG_USING_RTDUINO is not set # # Projects @@ -985,45 +973,15 @@ CONFIG_BSP_USING_UART1=y # CONFIG_BSP_USING_UART6 is not set # CONFIG_BSP_USING_UART7 is not set # CONFIG_BSP_USING_UART8 is not set -CONFIG_BSP_USING_ADC=y -CONFIG_BSP_USING_ADC1=y -# CONFIG_BSP_USING_ADC2 is not set -# CONFIG_ADC_CHANNEL_16 is not set -# CONFIG_ADC_CHANNEL_17 is not set +# CONFIG_BSP_USING_ADC is not set # CONFIG_BSP_USING_DAC is not set -CONFIG_BSP_USING_SOFT_I2C=y -CONFIG_BSP_USING_I2C1=y - -# -# Notice: PC7 --> 39; PC6 --> 38 -# -CONFIG_BSP_I2C1_SCL_PIN=38 -CONFIG_BSP_I2C1_SDA_PIN=39 -# CONFIG_BSP_USING_I2C2 is not set +# CONFIG_BSP_USING_SOFT_I2C is not set # CONFIG_BSP_USING_SPI is not set # CONFIG_BSP_USING_RTC is not set CONFIG_LSI_VALUE=40000 # CONFIG_BSP_USING_IWDT is not set # CONFIG_BSP_USING_CAN is not set -CONFIG_BSP_USING_TIM=y -CONFIG_BSP_USING_HWTIMER=y -# CONFIG_BSP_USING_PWM is not set -CONFIG_BSP_USING_TIM1=y -CONFIG_BSP_USING_TIM1_HWTIMER=y -# CONFIG_BSP_USING_TIM1_PWM is not set -# CONFIG_BSP_USING_TIM2 is not set -CONFIG_BSP_USING_TIM3=y -CONFIG_BSP_USING_TIM3_HWTIMER=y -# CONFIG_BSP_USING_TIM3_PWM is not set -CONFIG_BSP_USING_TIM4=y -CONFIG_BSP_USING_TIM4_HWTIMER=y -# CONFIG_BSP_USING_TIM4_PWM is not set -# CONFIG_BSP_USING_TIM5 is not set -# CONFIG_BSP_USING_TIM6 is not set -# CONFIG_BSP_USING_TIM7 is not set -# CONFIG_BSP_USING_TIM8 is not set -# CONFIG_BSP_USING_TIM9 is not set -# CONFIG_BSP_USING_TIM10 is not set +# CONFIG_BSP_USING_TIM is not set # # Board extended module Drivers diff --git a/bsp/wch/risc-v/ch32v208w-r0/rtconfig.h b/bsp/wch/risc-v/ch32v208w-r0/rtconfig.h index e0f52dc1bc..99af814ed6 100644 --- a/bsp/wch/risc-v/ch32v208w-r0/rtconfig.h +++ b/bsp/wch/risc-v/ch32v208w-r0/rtconfig.h @@ -74,12 +74,8 @@ #define RT_USING_SERIAL #define RT_USING_SERIAL_V1 #define RT_SERIAL_RB_BUFSZ 64 -#define RT_USING_HWTIMER -#define RT_USING_I2C -#define RT_USING_I2C_BITOPS #define RT_USING_PIN -#define RT_USING_ADC -#define RT_USING_PWM + /* Using USB */ @@ -96,7 +92,6 @@ /* Socket is in the 'Network' category */ -#define RT_USING_CPLUSPLUS /* Network */ @@ -191,10 +186,6 @@ /* Arduino libraries */ -#define PKG_USING_RTDUINO -#define RTDUINO_THREAD_SIZE 1536 -#define RTDUINO_THREAD_PRIO 30 -#define PKG_USING_RTDUINO_LATEST_VERSION /* Projects */ @@ -241,24 +232,7 @@ #define BSP_USING_GPIO #define BSP_USING_UART #define BSP_USING_UART1 -#define BSP_USING_ADC -#define BSP_USING_ADC1 -#define BSP_USING_SOFT_I2C -#define BSP_USING_I2C1 - -/* Notice: PC7 --> 39; PC6 --> 38 */ - -#define BSP_I2C1_SCL_PIN 38 -#define BSP_I2C1_SDA_PIN 39 #define LSI_VALUE 40000 -#define BSP_USING_TIM -#define BSP_USING_HWTIMER -#define BSP_USING_TIM1 -#define BSP_USING_TIM1_HWTIMER -#define BSP_USING_TIM3 -#define BSP_USING_TIM3_HWTIMER -#define BSP_USING_TIM4 -#define BSP_USING_TIM4_HWTIMER /* Board extended module Drivers */