Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
938d9fa3
R
rt-thread
项目概览
2301_76519099
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
938d9fa3
编写于
4月 07, 2019
作者:
xuzhuoyi96
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][gd32e230k-start] Fix USART bug and change license
上级
0255f251
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
67 addition
and
432 deletion
+67
-432
bsp/gd32e230k-start/.config
bsp/gd32e230k-start/.config
+1
-19
bsp/gd32e230k-start/applications/main.c
bsp/gd32e230k-start/applications/main.c
+2
-11
bsp/gd32e230k-start/drivers/board.c
bsp/gd32e230k-start/drivers/board.c
+2
-6
bsp/gd32e230k-start/drivers/board.h
bsp/gd32e230k-start/drivers/board.h
+3
-7
bsp/gd32e230k-start/drivers/drv_gpio.c
bsp/gd32e230k-start/drivers/drv_gpio.c
+2
-6
bsp/gd32e230k-start/drivers/drv_gpio.h
bsp/gd32e230k-start/drivers/drv_gpio.h
+2
-6
bsp/gd32e230k-start/drivers/drv_i2c.c
bsp/gd32e230k-start/drivers/drv_i2c.c
+20
-21
bsp/gd32e230k-start/drivers/drv_i2c.h
bsp/gd32e230k-start/drivers/drv_i2c.h
+2
-16
bsp/gd32e230k-start/drivers/drv_spi.c
bsp/gd32e230k-start/drivers/drv_spi.c
+11
-14
bsp/gd32e230k-start/drivers/drv_spi.h
bsp/gd32e230k-start/drivers/drv_spi.h
+2
-6
bsp/gd32e230k-start/drivers/drv_usart.c
bsp/gd32e230k-start/drivers/drv_usart.c
+13
-12
bsp/gd32e230k-start/drivers/drv_usart.h
bsp/gd32e230k-start/drivers/drv_usart.h
+2
-6
bsp/gd32e230k-start/project.uvoptx
bsp/gd32e230k-start/project.uvoptx
+4
-204
bsp/gd32e230k-start/project.uvprojx
bsp/gd32e230k-start/project.uvprojx
+1
-86
bsp/gd32e230k-start/rtconfig.h
bsp/gd32e230k-start/rtconfig.h
+0
-12
未找到文件。
bsp/gd32e230k-start/.config
浏览文件 @
938d9fa3
...
...
@@ -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
...
...
bsp/gd32e230k-start/applications/main.c
浏览文件 @
938d9fa3
/*
* 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
;
}
bsp/gd32e230k-start/drivers/board.c
浏览文件 @
938d9fa3
/*
* 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
...
...
bsp/gd32e230k-start/drivers/board.h
浏览文件 @
938d9fa3
/*
* 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
...
...
bsp/gd32e230k-start/drivers/drv_gpio.c
浏览文件 @
938d9fa3
/*
* 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
...
...
bsp/gd32e230k-start/drivers/drv_gpio.h
浏览文件 @
938d9fa3
/*
* 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
...
...
bsp/gd32e230k-start/drivers/drv_i2c.c
浏览文件 @
938d9fa3
/*
* 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
);
...
...
bsp/gd32e230k-start/drivers/drv_i2c.h
浏览文件 @
938d9fa3
/*
* 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
...
...
bsp/gd32e230k-start/drivers/drv_spi.c
浏览文件 @
938d9fa3
/*
* 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
;
}
...
...
bsp/gd32e230k-start/drivers/drv_spi.h
浏览文件 @
938d9fa3
/*
* 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
...
...
bsp/gd32e230k-start/drivers/drv_usart.c
浏览文件 @
938d9fa3
/*
* 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_
5
0MHZ
,
uart
->
tx_pin
);
gpio_output_options_set
(
uart
->
tx_port
,
GPIO_OTYPE_PP
,
GPIO_OSPEED_
1
0MHZ
,
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
);
...
...
bsp/gd32e230k-start/drivers/drv_usart.h
浏览文件 @
938d9fa3
/*
* 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
...
...
bsp/gd32e230k-start/project.uvoptx
浏览文件 @
938d9fa3
...
...
@@ -103,7 +103,7 @@
<bEvRecOn>
1
</bEvRecOn>
<bSchkAxf>
0
</bSchkAxf>
<bTchkAxf>
0
</bTchkAxf>
<nTsel>
19
</nTsel>
<nTsel>
20
</nTsel>
<sDll></sDll>
<sDllPa></sDllPa>
<sDlgDll></sDlgDll>
...
...
@@ -114,7 +114,7 @@
<tDlgDll></tDlgDll>
<tDlgPa></tDlgPa>
<tIfile></tIfile>
<pMon>
BIN\
UL2
V8M.DLL
</pMon>
<pMon>
BIN\
CMSIS_AGDI_
V8M.DLL
</pMon>
</DebugOpt>
<TargetDriverDllRegistry>
<SetRegEntry>
...
...
@@ -176,7 +176,7 @@
<Group>
<GroupName>
Kernel
</GroupName>
<tvExp>
0
</tvExp>
<tvExp>
1
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
@@ -364,7 +364,7 @@
<Group>
<GroupName>
Applications
</GroupName>
<tvExp>
0
</tvExp>
<tvExp>
1
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
...
...
@@ -966,206 +966,6 @@
</File>
</Group>
<Group>
<GroupName>
finsh
</GroupName>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<cbSel>
0
</cbSel>
<RteFlg>
0
</RteFlg>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
63
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\shell.c
</PathWithFileName>
<FilenameWithoutPath>
shell.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
64
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\symbol.c
</PathWithFileName>
<FilenameWithoutPath>
symbol.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
65
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\cmd.c
</PathWithFileName>
<FilenameWithoutPath>
cmd.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
66
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\msh.c
</PathWithFileName>
<FilenameWithoutPath>
msh.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
67
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\msh_cmd.c
</PathWithFileName>
<FilenameWithoutPath>
msh_cmd.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
68
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\msh_file.c
</PathWithFileName>
<FilenameWithoutPath>
msh_file.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
69
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_compiler.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_compiler.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
70
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_error.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_error.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
71
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_heap.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_heap.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
72
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_init.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_init.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
73
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_node.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_node.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
74
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_ops.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_ops.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
75
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_parser.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_parser.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
76
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_var.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_var.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
77
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_vm.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_vm.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
7
</GroupNumber>
<FileNumber>
78
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\components\finsh\finsh_token.c
</PathWithFileName>
<FilenameWithoutPath>
finsh_token.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
</Group>
<Group>
<GroupName>
::CMSIS
</GroupName>
<tvExp>
0
</tvExp>
...
...
bsp/gd32e230k-start/project.uvprojx
浏览文件 @
938d9fa3
...
...
@@ -338,7 +338,7 @@
<MiscControls></MiscControls>
<Define>
GD32E230
</Define>
<Undefine></Undefine>
<IncludePath>
.;..\..\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
</IncludePath>
<IncludePath>
.;..\..\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
</IncludePath>
</VariousControls>
</Cads>
<Aads>
...
...
@@ -788,91 +788,6 @@
</File>
</Files>
</Group>
<Group>
<GroupName>
finsh
</GroupName>
<Files>
<File>
<FileName>
shell.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\shell.c
</FilePath>
</File>
<File>
<FileName>
symbol.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\symbol.c
</FilePath>
</File>
<File>
<FileName>
cmd.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\cmd.c
</FilePath>
</File>
<File>
<FileName>
msh.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\msh.c
</FilePath>
</File>
<File>
<FileName>
msh_cmd.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\msh_cmd.c
</FilePath>
</File>
<File>
<FileName>
msh_file.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\msh_file.c
</FilePath>
</File>
<File>
<FileName>
finsh_compiler.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_compiler.c
</FilePath>
</File>
<File>
<FileName>
finsh_error.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_error.c
</FilePath>
</File>
<File>
<FileName>
finsh_heap.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_heap.c
</FilePath>
</File>
<File>
<FileName>
finsh_init.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_init.c
</FilePath>
</File>
<File>
<FileName>
finsh_node.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_node.c
</FilePath>
</File>
<File>
<FileName>
finsh_ops.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_ops.c
</FilePath>
</File>
<File>
<FileName>
finsh_parser.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_parser.c
</FilePath>
</File>
<File>
<FileName>
finsh_var.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_var.c
</FilePath>
</File>
<File>
<FileName>
finsh_vm.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_vm.c
</FilePath>
</File>
<File>
<FileName>
finsh_token.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\components\finsh\finsh_token.c
</FilePath>
</File>
</Files>
</Group>
<Group>
<GroupName>
::CMSIS
</GroupName>
</Group>
...
...
bsp/gd32e230k-start/rtconfig.h
浏览文件 @
938d9fa3
...
...
@@ -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 */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录