diff --git a/bsp/gd32e230k-start/.config b/bsp/gd32e230k-start/.config
index 8f18d4257eabc045e8f68939fa0b9fff330320de..aa6698d6031041ff98a95aeadb2de3d7f6495b97 100644
--- a/bsp/gd32e230k-start/.config
+++ b/bsp/gd32e230k-start/.config
@@ -83,30 +83,12 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10
#
# Command shell
#
-CONFIG_RT_USING_FINSH=y
-CONFIG_FINSH_THREAD_NAME="tshell"
-CONFIG_FINSH_USING_HISTORY=y
-CONFIG_FINSH_HISTORY_LINES=5
-CONFIG_FINSH_USING_SYMTAB=y
-CONFIG_FINSH_USING_DESCRIPTION=y
-# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set
-CONFIG_FINSH_THREAD_PRIORITY=20
-CONFIG_FINSH_THREAD_STACK_SIZE=4096
-CONFIG_FINSH_CMD_SIZE=80
-# CONFIG_FINSH_USING_AUTH is not set
-CONFIG_FINSH_USING_MSH=y
-CONFIG_FINSH_USING_MSH_DEFAULT=y
-# CONFIG_FINSH_USING_MSH_ONLY is not set
-CONFIG_FINSH_ARG_MAX=10
+# CONFIG_RT_USING_FINSH is not set
#
# Device virtual file system
#
# CONFIG_RT_USING_DFS is not set
-# CONFIG_RT_DFS_ELM_USE_LFN_0 is not set
-# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set
-# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set
-# CONFIG_RT_DFS_ELM_USE_LFN_3 is not set
#
# Device Drivers
diff --git a/bsp/gd32e230k-start/applications/main.c b/bsp/gd32e230k-start/applications/main.c
index 6e190ae3ccb63ab7b89b5c205c295db2ae017f7d..cabddf36d61e182a3873c9f11a479135a773d9f1 100644
--- a/bsp/gd32e230k-start/applications/main.c
+++ b/bsp/gd32e230k-start/applications/main.c
@@ -1,11 +1,7 @@
/*
- * File : main.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -20,8 +16,3 @@ int main(void)
return 0;
}
-
-
-
-
-
diff --git a/bsp/gd32e230k-start/drivers/board.c b/bsp/gd32e230k-start/drivers/board.c
index 9ca024ec48ed61a78ec0f275d5fb3bd6968e38e5..ea91fd7eb818cc8b5c462251514f88398ac6c0c3 100644
--- a/bsp/gd32e230k-start/drivers/board.c
+++ b/bsp/gd32e230k-start/drivers/board.c
@@ -1,11 +1,7 @@
/*
- * File : board.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 RT-Thread Develop Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
diff --git a/bsp/gd32e230k-start/drivers/board.h b/bsp/gd32e230k-start/drivers/board.h
index bff43464b4a177b76467d286abeedfbe0a7972cb..5097fb169e1caed49a3a156e2d7f1e957a0c9dc6 100644
--- a/bsp/gd32e230k-start/drivers/board.h
+++ b/bsp/gd32e230k-start/drivers/board.h
@@ -1,11 +1,7 @@
/*
- * File : board.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -25,7 +21,7 @@
extern char __ICFEDIT_region_RAM_end__;
#define GD32_SRAM_END &__ICFEDIT_region_RAM_end__
#else
-#define GD32_SRAM_SIZE 64
+#define GD32_SRAM_SIZE 8
#define GD32_SRAM_END (0x20000000 + GD32_SRAM_SIZE * 1024)
#endif
diff --git a/bsp/gd32e230k-start/drivers/drv_gpio.c b/bsp/gd32e230k-start/drivers/drv_gpio.c
index 288ba6c8323763b29ed9e55053f4a56e15e84e2f..521db3823baf990cd9bdefaf94d43ff1d2b59d9f 100644
--- a/bsp/gd32e230k-start/drivers/drv_gpio.c
+++ b/bsp/gd32e230k-start/drivers/drv_gpio.c
@@ -1,11 +1,7 @@
/*
- * File : drv_gpio.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2019, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
diff --git a/bsp/gd32e230k-start/drivers/drv_gpio.h b/bsp/gd32e230k-start/drivers/drv_gpio.h
index bca532ff2d054aa4301cd7617c7719737ddcfea0..3c758b27132c085bcca723c946a4f2b7500dcf88 100644
--- a/bsp/gd32e230k-start/drivers/drv_gpio.h
+++ b/bsp/gd32e230k-start/drivers/drv_gpio.h
@@ -1,11 +1,7 @@
/*
- * File : drv_gpio.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2015, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
diff --git a/bsp/gd32e230k-start/drivers/drv_i2c.c b/bsp/gd32e230k-start/drivers/drv_i2c.c
index 78ddd99bdda76d2fe8e6d6e169cf3e3f8c29a9f5..473a2b1bda2346b23c07c2027c1e6146d8b270ba 100644
--- a/bsp/gd32e230k-start/drivers/drv_i2c.c
+++ b/bsp/gd32e230k-start/drivers/drv_i2c.c
@@ -1,21 +1,7 @@
/*
- * File : drv_i2c.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2019, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -328,9 +314,15 @@ int rt_hw_i2c_init(void)
/* enable GPIOB clock */
rcu_periph_clock_enable(RCU_GPIOB);
- /* connect PB6 to I2C0_SCL, PB7 to I2C0_SDA */
- gpio_mode_set(GPIOB, GPIO_MODE_AF, GPIO_PUPD_NONE, GPIO_PIN_6 | GPIO_PIN_7);
- gpio_output_options_set(GPIOB, GPIO_OTYPE_OD, GPIO_OSPEED_50MHZ, GPIO_PIN_6 | GPIO_PIN_7);
+ /* connect PB6 to I2C0_SCL */
+ gpio_af_set(GPIOB, GPIO_AF_1, GPIO_PIN_6);
+ /* connect PB7 to I2C0_SDA */
+ gpio_af_set(GPIOB, GPIO_AF_1, GPIO_PIN_7);
+ /* configure GPIO pins of I2C0 */
+ gpio_mode_set(GPIOB, GPIO_MODE_AF, GPIO_PUPD_PULLUP,GPIO_PIN_6);
+ gpio_output_options_set(GPIOB, GPIO_OTYPE_OD, GPIO_OSPEED_50MHZ,GPIO_PIN_6);
+ gpio_mode_set(GPIOB, GPIO_MODE_AF, GPIO_PUPD_PULLUP,GPIO_PIN_7);
+ gpio_output_options_set(GPIOB, GPIO_OTYPE_OD, GPIO_OSPEED_50MHZ,GPIO_PIN_7);
/* enable I2C clock */
rcu_periph_clock_enable(RCU_I2C0);
@@ -354,8 +346,15 @@ int rt_hw_i2c_init(void)
/* enable GPIOB clock */
rcu_periph_clock_enable(RCU_GPIOB);
- /* connect PB10 to I2C1_SCL, PB11 to I2C1_SDA */
- gpio_init(GPIOB, GPIO_MODE_AF_OD, GPIO_OSPEED_50MHZ, GPIO_PIN_10 | GPIO_PIN_11);
+ /* connect PB10 to I2C1_SCL */
+ gpio_af_set(GPIOB, GPIO_AF_1, GPIO_PIN_10);
+ /* connect PB11 to I2C1_SDA */
+ gpio_af_set(GPIOB, GPIO_AF_1, GPIO_PIN_11);
+ /* configure GPIO pins of I2C1 */
+ gpio_mode_set(GPIOB, GPIO_MODE_AF, GPIO_PUPD_PULLUP,GPIO_PIN_10);
+ gpio_output_options_set(GPIOB, GPIO_OTYPE_OD, GPIO_OSPEED_50MHZ,GPIO_PIN_10);
+ gpio_mode_set(GPIOB, GPIO_MODE_AF, GPIO_PUPD_PULLUP,GPIO_PIN_11);
+ gpio_output_options_set(GPIOB, GPIO_OTYPE_OD, GPIO_OSPEED_50MHZ,GPIO_PIN_11);
/* enable I2C clock */
rcu_periph_clock_enable(RCU_I2C1);
diff --git a/bsp/gd32e230k-start/drivers/drv_i2c.h b/bsp/gd32e230k-start/drivers/drv_i2c.h
index 2cc86ace3c3a74ca5b35537a6dd9e921b9f136fe..6e7de45260befeb2460a4b908a3a87b1843e1d65 100644
--- a/bsp/gd32e230k-start/drivers/drv_i2c.h
+++ b/bsp/gd32e230k-start/drivers/drv_i2c.h
@@ -1,21 +1,7 @@
/*
- * File : drv_i2c.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
diff --git a/bsp/gd32e230k-start/drivers/drv_spi.c b/bsp/gd32e230k-start/drivers/drv_spi.c
index 1611b1d338ff58f85fe5c2d199c5611ef19fca77..706756d3de93ba9617271b08a18b95bb7206e07a 100644
--- a/bsp/gd32e230k-start/drivers/drv_spi.c
+++ b/bsp/gd32e230k-start/drivers/drv_spi.c
@@ -1,11 +1,7 @@
/*
- * File : drv_spi.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2019 RT-Thread Develop Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -265,10 +261,11 @@ int gd32_hw_spi_init(void)
rcu_periph_clock_enable(RCU_GPIOA);
rcu_periph_clock_enable(RCU_SPI0);
- /* SPI0_SCK(PA5), SPI0_MISO(PA6) and SPI0_MOSI(PA7) GPIO pin configuration */
- gpio_mode_set(GPIOA, GPIO_MODE_AF, GPIO_PUPD_NONE, GPIO_PIN_5 | GPIO_PIN_7);
- gpio_output_options_set(GPIOA, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_5 | GPIO_PIN_7);
- gpio_mode_set(GPIOA, GPIO_MODE_INPUT, GPIO_PUPD_NONE, GPIO_PIN_5 | GPIO_PIN_7);
+
+ /* SPI0 GPIO config: SCK/PA5, MISO/PA6, MOSI/PA7 */
+ gpio_af_set(GPIOA, GPIO_AF_0, GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7);
+ gpio_mode_set(GPIOA, GPIO_MODE_AF, GPIO_PUPD_NONE, GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7);
+ gpio_output_options_set(GPIOA, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7);
#endif
#ifdef RT_USING_SPI1
static struct rt_spi_bus spi_bus1;
@@ -279,10 +276,10 @@ int gd32_hw_spi_init(void)
rcu_periph_clock_enable(RCU_SPI1);
rcu_periph_clock_enable(RCU_GPIOB);
- /* SPI1_SCK(PB13), SPI1_MISO(PB14) and SPI1_MOSI(PB15) GPIO pin configuration */
- gpio_mode_set(GPIOB, GPIO_MODE_AF, GPIO_PUPD_NONE, GPIO_PIN_13 | GPIO_PIN_15);
- gpio_output_options_set(GPIOB, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_13 | GPIO_PIN_15);
- gpio_mode_set(GPIOB, GPIO_MODE_INPUT, GPIO_PUPD_NONE, GPIO_PIN_14);
+ /* SPI1 GPIO config: SCK/PB13, MISO/PB14, MOSI/PB15 */
+ gpio_af_set(GPIOB, GPIO_AF_0, GPIO_PIN_13 | GPIO_PIN_14 |GPIO_PIN_15);
+ gpio_mode_set(GPIOB, GPIO_MODE_AF, GPIO_PUPD_NONE, GPIO_PIN_13 | GPIO_PIN_14 |GPIO_PIN_15);
+ gpio_output_options_set(GPIOB, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_13 | GPIO_PIN_14 |GPIO_PIN_15);
#endif
return result;
}
diff --git a/bsp/gd32e230k-start/drivers/drv_spi.h b/bsp/gd32e230k-start/drivers/drv_spi.h
index 69b07b70afcfefe61c04d8e2103196844ed2710d..01bafb9964de814870046517f1280ded38aeaa20 100644
--- a/bsp/gd32e230k-start/drivers/drv_spi.h
+++ b/bsp/gd32e230k-start/drivers/drv_spi.h
@@ -1,11 +1,7 @@
/*
- * File : gd32f30x_spi.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 RT-Thread Develop Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
diff --git a/bsp/gd32e230k-start/drivers/drv_usart.c b/bsp/gd32e230k-start/drivers/drv_usart.c
index eef2f741b83d51a3cdeeebcdccd772a78b9c0fa1..c49684de4b59054fd128d28a0835aa866fbd0859 100644
--- a/bsp/gd32e230k-start/drivers/drv_usart.c
+++ b/bsp/gd32e230k-start/drivers/drv_usart.c
@@ -1,11 +1,7 @@
/*
- * File : drv_usart.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -41,8 +37,10 @@ struct gd32_uart
rcu_periph_enum tx_gpio_clk;
rcu_periph_enum rx_gpio_clk;
uint32_t tx_port;
+ uint32_t tx_af;
uint16_t tx_pin;
uint32_t rx_port;
+ uint32_t rx_af;
uint16_t rx_pin;
struct rt_serial_device * serial;
@@ -89,8 +87,8 @@ static const struct gd32_uart uarts[] = {
USART0, // uart peripheral index
USART0_IRQn, // uart iqrn
RCU_USART0, RCU_GPIOA, RCU_GPIOA, // periph clock, tx gpio clock, rt gpio clock
- GPIOA, GPIO_PIN_9, // tx port, tx pin
- GPIOA, GPIO_PIN_10, // rx port, rx pin
+ GPIOA, GPIO_AF_1, GPIO_PIN_9, // tx port, tx pin
+ GPIOA, GPIO_AF_1, GPIO_PIN_10, // rx port, rx pin
&serial0,
"uart0",
},
@@ -101,8 +99,8 @@ static const struct gd32_uart uarts[] = {
USART1, // uart peripheral index
USART1_IRQn, // uart iqrn
RCU_USART1, RCU_GPIOA, RCU_GPIOA, // periph clock, tx gpio clock, rt gpio clock
- GPIOA, GPIO_PIN_2, // tx port, tx pin
- GPIOA, GPIO_PIN_3, // rx port, rx pin
+ GPIOA, GPIO_AF_1, GPIO_PIN_2, // tx port, tx pin
+ GPIOA, GPIO_AF_1, GPIO_PIN_3, // rx port, rx pin
&serial1,
"uart1",
},
@@ -124,14 +122,17 @@ void gd32_uart_gpio_init(struct gd32_uart *uart)
/* enable USART clock */
rcu_periph_clock_enable(uart->tx_gpio_clk);
rcu_periph_clock_enable(uart->rx_gpio_clk);
- rcu_periph_clock_enable(uart->per_clk);
+ rcu_periph_clock_enable(uart->per_clk);
/* connect port to USARTx_Tx */
+ gpio_af_set(uart->tx_port, uart->tx_af, uart->tx_pin);
gpio_mode_set(uart->tx_port, GPIO_MODE_AF, GPIO_PUPD_NONE, uart->tx_pin);
- gpio_output_options_set(uart->tx_port, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, uart->tx_pin);
+ gpio_output_options_set(uart->tx_port, GPIO_OTYPE_PP, GPIO_OSPEED_10MHZ, uart->tx_pin);
/* connect port to USARTx_Rx */
+ gpio_af_set(uart->rx_port, uart->rx_af, uart->rx_pin);
gpio_mode_set(uart->rx_port, GPIO_MODE_INPUT, GPIO_PUPD_NONE, uart->rx_pin);
+ gpio_output_options_set(uart->rx_port, GPIO_OTYPE_PP, GPIO_OSPEED_10MHZ, uart->rx_pin);
NVIC_SetPriority(uart->irqn, 0);
NVIC_EnableIRQ(uart->irqn);
diff --git a/bsp/gd32e230k-start/drivers/drv_usart.h b/bsp/gd32e230k-start/drivers/drv_usart.h
index 215801627282119c6d142a18d9dd8be4b61d20fa..0fb15bee6f8e363b4b7779598427bee817f19521 100644
--- a/bsp/gd32e230k-start/drivers/drv_usart.h
+++ b/bsp/gd32e230k-start/drivers/drv_usart.h
@@ -1,11 +1,7 @@
/*
- * File : drv_usart.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009, RT-Thread Development Team
+ * Copyright (c) 2006-2019, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
diff --git a/bsp/gd32e230k-start/project.uvoptx b/bsp/gd32e230k-start/project.uvoptx
index 5da1234dd34af361410a651958f49fdf5b6b55d2..ef882479f1dc6ef840eb705a7377e5475923e5b4 100644
--- a/bsp/gd32e230k-start/project.uvoptx
+++ b/bsp/gd32e230k-start/project.uvoptx
@@ -103,7 +103,7 @@
1
0
0
- 19
+ 20
@@ -114,7 +114,7 @@
- BIN\UL2V8M.DLL
+ BIN\CMSIS_AGDI_V8M.DLL
@@ -176,7 +176,7 @@
Kernel
- 0
+ 1
0
0
0
@@ -364,7 +364,7 @@
Applications
- 0
+ 1
0
0
0
@@ -966,206 +966,6 @@
-
- finsh
- 0
- 0
- 0
- 0
-
- 7
- 63
- 1
- 0
- 0
- 0
- ..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 7
- 64
- 1
- 0
- 0
- 0
- ..\..\components\finsh\symbol.c
- symbol.c
- 0
- 0
-
-
- 7
- 65
- 1
- 0
- 0
- 0
- ..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 7
- 66
- 1
- 0
- 0
- 0
- ..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 7
- 67
- 1
- 0
- 0
- 0
- ..\..\components\finsh\msh_cmd.c
- msh_cmd.c
- 0
- 0
-
-
- 7
- 68
- 1
- 0
- 0
- 0
- ..\..\components\finsh\msh_file.c
- msh_file.c
- 0
- 0
-
-
- 7
- 69
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_compiler.c
- finsh_compiler.c
- 0
- 0
-
-
- 7
- 70
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_error.c
- finsh_error.c
- 0
- 0
-
-
- 7
- 71
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_heap.c
- finsh_heap.c
- 0
- 0
-
-
- 7
- 72
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_init.c
- finsh_init.c
- 0
- 0
-
-
- 7
- 73
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_node.c
- finsh_node.c
- 0
- 0
-
-
- 7
- 74
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_ops.c
- finsh_ops.c
- 0
- 0
-
-
- 7
- 75
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_parser.c
- finsh_parser.c
- 0
- 0
-
-
- 7
- 76
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_var.c
- finsh_var.c
- 0
- 0
-
-
- 7
- 77
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_vm.c
- finsh_vm.c
- 0
- 0
-
-
- 7
- 78
- 1
- 0
- 0
- 0
- ..\..\components\finsh\finsh_token.c
- finsh_token.c
- 0
- 0
-
-
-
::CMSIS
0
diff --git a/bsp/gd32e230k-start/project.uvprojx b/bsp/gd32e230k-start/project.uvprojx
index 115df957babf723918912bf73c5493bc7ded8d39..529a87f12ea1a2cfbf169c0cebd871f68fb3e28d 100644
--- a/bsp/gd32e230k-start/project.uvprojx
+++ b/bsp/gd32e230k-start/project.uvprojx
@@ -338,7 +338,7 @@
GD32E230
- .;..\..\include;applications;.;drivers;Libraries\CMSIS\GD\GD32E230\Include;Libraries\CMSIS;Libraries\GD32E230_standard_peripheral\Include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m23;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\spi\sfud\inc;..\..\components\drivers\include;..\..\components\finsh
+ .;..\..\include;applications;drivers;Libraries\CMSIS\GD\GD32E230\Include;Libraries\CMSIS;Libraries\GD32E230_standard_peripheral\Include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m23;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\spi;..\..\components\drivers\include;..\..\components\drivers\spi\sfud\inc;..\..\components\drivers\include
@@ -788,91 +788,6 @@
-
- finsh
-
-
- shell.c
- 1
- ..\..\components\finsh\shell.c
-
-
- symbol.c
- 1
- ..\..\components\finsh\symbol.c
-
-
- cmd.c
- 1
- ..\..\components\finsh\cmd.c
-
-
- msh.c
- 1
- ..\..\components\finsh\msh.c
-
-
- msh_cmd.c
- 1
- ..\..\components\finsh\msh_cmd.c
-
-
- msh_file.c
- 1
- ..\..\components\finsh\msh_file.c
-
-
- finsh_compiler.c
- 1
- ..\..\components\finsh\finsh_compiler.c
-
-
- finsh_error.c
- 1
- ..\..\components\finsh\finsh_error.c
-
-
- finsh_heap.c
- 1
- ..\..\components\finsh\finsh_heap.c
-
-
- finsh_init.c
- 1
- ..\..\components\finsh\finsh_init.c
-
-
- finsh_node.c
- 1
- ..\..\components\finsh\finsh_node.c
-
-
- finsh_ops.c
- 1
- ..\..\components\finsh\finsh_ops.c
-
-
- finsh_parser.c
- 1
- ..\..\components\finsh\finsh_parser.c
-
-
- finsh_var.c
- 1
- ..\..\components\finsh\finsh_var.c
-
-
- finsh_vm.c
- 1
- ..\..\components\finsh\finsh_vm.c
-
-
- finsh_token.c
- 1
- ..\..\components\finsh\finsh_token.c
-
-
-
::CMSIS
diff --git a/bsp/gd32e230k-start/rtconfig.h b/bsp/gd32e230k-start/rtconfig.h
index ef5a6509f7ead20735ac1afb1ffce4f4768e677d..ae64fc01f68f292fe6331f65ce6cead86c985b37 100644
--- a/bsp/gd32e230k-start/rtconfig.h
+++ b/bsp/gd32e230k-start/rtconfig.h
@@ -53,18 +53,6 @@
/* Command shell */
-#define RT_USING_FINSH
-#define FINSH_THREAD_NAME "tshell"
-#define FINSH_USING_HISTORY
-#define FINSH_HISTORY_LINES 5
-#define FINSH_USING_SYMTAB
-#define FINSH_USING_DESCRIPTION
-#define FINSH_THREAD_PRIORITY 20
-#define FINSH_THREAD_STACK_SIZE 4096
-#define FINSH_CMD_SIZE 80
-#define FINSH_USING_MSH
-#define FINSH_USING_MSH_DEFAULT
-#define FINSH_ARG_MAX 10
/* Device virtual file system */