Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
fc537808
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,发现更多精彩内容 >>
提交
fc537808
编写于
9月 09, 2021
作者:
F
FuChao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更换格式控制文件位置,删除冗余代码和注释,更正芯片命名
上级
dd910a78
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
16 addition
and
82 deletion
+16
-82
.ignore_format.yml
.ignore_format.yml
+1
-2
bsp/Vango_V85xx/.config
bsp/Vango_V85xx/.config
+2
-2
bsp/Vango_V85xx/.ignore_format.yml
bsp/Vango_V85xx/.ignore_format.yml
+6
-0
bsp/Vango_V85xx/Kconfig
bsp/Vango_V85xx/Kconfig
+3
-3
bsp/Vango_V85xx/Libraries/CMSIS/Vango/V85xx/Include/gd32f10x_conf.h
...V85xx/Libraries/CMSIS/Vango/V85xx/Include/gd32f10x_conf.h
+0
-40
bsp/Vango_V85xx/drivers/drv_usart.c
bsp/Vango_V85xx/drivers/drv_usart.c
+1
-25
bsp/Vango_V85xx/drivers/drv_usart.h
bsp/Vango_V85xx/drivers/drv_usart.h
+1
-8
bsp/Vango_V85xx/rtconfig.h
bsp/Vango_V85xx/rtconfig.h
+2
-2
未找到文件。
.ignore_format.yml
浏览文件 @
fc537808
...
...
@@ -11,5 +11,4 @@ dir_path:
-
components/net/lwip-2.0.2
-
components/net/lwip-2.0.3
-
components/net/lwip-2.1.2
-
bsp/mm32f327x/Libraries
-
bsp/Vango_V85xx/Libraries
\ No newline at end of file
-
bsp/mm32f327x/Libraries
\ No newline at end of file
bsp/Vango_V85xx/.config
浏览文件 @
fc537808
...
...
@@ -578,8 +578,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
# CONFIG_PKG_USING_MCURSES is not set
# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_TERMBOX is not set
CONFIG_SOC_SERIES_
GD32F1
=
y
CONFIG_SOC_
GD32103C
=
y
CONFIG_SOC_SERIES_
V85XX
=
y
CONFIG_SOC_
V85XX
=
y
#
# On-chip Peripheral Drivers
...
...
bsp/Vango_V85xx/.ignore_format.yml
0 → 100644
浏览文件 @
fc537808
# files format check exclude path, please follow the instructions below to modify;
# If you need to exclude an entire folder, add the folder path in dir_path;
# If you need to exclude a file, add the path to the file in file_path.
dir_path
:
-
Libraries/VangoV85xx_standard_peripheral
\ No newline at end of file
bsp/Vango_V85xx/Kconfig
浏览文件 @
fc537808
...
...
@@ -21,15 +21,15 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_SERIES_
GD32F1
config SOC_SERIES_
V85XX
bool
default y
config SOC_
GD32103C
config SOC_
V85XX
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
select SOC_SERIES_
GD32F1
select SOC_SERIES_
V85XX
default y
menu "On-chip Peripheral Drivers"
...
...
bsp/Vango_V85xx/Libraries/CMSIS/Vango/V85xx/Include/gd32f10x_conf.h
已删除
100644 → 0
浏览文件 @
dd910a78
/**
******************************************************************************
* @brief Configuration file.
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __GD32F10X_CONF_H
#define __GD32F10X_CONF_H
/* Includes ------------------------------------------------------------------*/
/* Comment the line below to disable peripheral header file inclusion */
#include "lib_ana.h"
#include "lib_adc.h"
#include "lib_adc_tiny.h"
#include "lib_clk.h"
#include "lib_comp.h"
#include "lib_crypt.h"
#include "lib_dma.h"
#include "lib_flash.h"
#include "lib_gpio.h"
#include "lib_i2c.h"
#include "lib_iso7816.h"
#include "lib_lcd.h"
#include "lib_misc.h"
#include "lib_pmu.h"
#include "lib_pwm.h"
#include "lib_rtc.h"
#include "lib_spi.h"
#include "lib_tmr.h"
#include "lib_u32k.h"
#include "lib_uart.h"
#include "lib_version.h"
#include "lib_wdt.h"
#include "lib_LoadNVR.h"
#include "lib_CodeRAM.h"
#include "lib_cortex.h"
#endif
/* __GD32F10X_CONF_H */
bsp/Vango_V85xx/drivers/drv_usart.c
浏览文件 @
fc537808
...
...
@@ -6,6 +6,7 @@
* Change Logs:
* Date Author Notes
* 2021-01-04 iysheng first version
* 2021-09-07 FuC Suit for Vango V85XX
*/
#include <target.h>
...
...
@@ -109,9 +110,6 @@ static const struct V85xx_uart uarts[] = {
{
UART0
,
/* uart peripheral index */
UART0_IRQn
,
/* uart iqrn */
// // RCU_UART0, RCU_GPIOA, RCU_GPIOA, /* periph clock, tx gpio clock, rt gpio clock */
// GPIOA, GPIOA, /* tx port, tx alternate, tx pin */
// GPIO_PIN_9, GPIO_PIN_10, /* rx port, rx alternate, rx pin */
&
serial0
,
"uart0"
,
},
...
...
@@ -121,9 +119,6 @@ static const struct V85xx_uart uarts[] = {
{
UART1
,
/* uart peripheral index */
UART1_IRQn
,
/* uart iqrn */
// RCU_UART1, RCU_GPIOA, RCU_GPIOA, /* periph clock, tx gpio clock, rt gpio clock */
// GPIOA, GPIOA, /* tx port, tx alternate, tx pin */
// GPIO_PIN_2, GPIO_PIN_3, /* rx port, rx alternate, rx pin */
&
serial1
,
"uart1"
,
},
...
...
@@ -133,9 +128,6 @@ static const struct V85xx_uart uarts[] = {
{
UART2
,
/* uart peripheral index */
UART2_IRQn
,
/* uart iqrn */
// RCU_UART2, RCU_GPIOB, RCU_GPIOB, /* periph clock, tx gpio clock, rt gpio clock */
// GPIOB, GPIOB, /* tx port, tx alternate, tx pin */
// GPIO_PIN_10, GPIO_PIN_11, /* rx port, rx alternate, rx pin */
&
serial2
,
"uart2"
,
},
...
...
@@ -145,9 +137,6 @@ static const struct V85xx_uart uarts[] = {
{
UART3
,
/* uart peripheral index */
UART3_IRQn
,
/* uart iqrn */
// RCU_UART3, RCU_GPIOC, RCU_GPIOC, /* periph clock, tx gpio clock, rt gpio clock */
// GPIOC, GPIOC, /* tx port, tx alternate, tx pin */
// GPIO_PIN_10, GPIO_PIN_11, /* rx port, rx alternate, rx pin */
&
serial3
,
"uart3"
,
},
...
...
@@ -157,9 +146,6 @@ static const struct V85xx_uart uarts[] = {
{
UART4
,
/* uart peripheral index */
UART4_IRQn
,
/* uart iqrn */
// RCU_UART4, RCU_GPIOC, RCU_GPIOD, /* periph clock, tx gpio clock, rt gpio clock */
// GPIOC, GPIOD, /* tx port, tx alternate, tx pin */
// GPIO_PIN_12, GPIO_PIN_2, /* rx port, rx alternate, rx pin */
&
serial4
,
"uart4"
,
},
...
...
@@ -191,15 +177,6 @@ static rt_err_t V85xx_configure(struct rt_serial_device *serial, struct serial_c
break
;
}
// switch (cfg->stop_bits) {
// case STOP_BITS_2:
// UART_InitParaStruct.UART_STBits = UART_STBITS_2;
// break;
// default:
// UART_InitParaStruct.UART_STBits = UART_STBITS_1;
// break;
// }
switch
(
cfg
->
parity
)
{
case
PARITY_ODD
:
UART_InitParaStruct
.
Parity
=
UART_PARITY_ODD
;
...
...
@@ -212,7 +189,6 @@ static rt_err_t V85xx_configure(struct rt_serial_device *serial, struct serial_c
break
;
}
// UART_InitParaStruct.UART_HardwareFlowControl = UART_HARDWAREFLOWCONTROL_NONE;
UART_InitParaStruct
.
Mode
=
UART_MODE_RX
|
UART_MODE_TX
;
UART_Init
(
UARTx
,
&
UART_InitParaStruct
);
UART_Cmd
(
UARTx
,
UART_InitParaStruct
.
Mode
,
ENABLE
);
...
...
bsp/Vango_V85xx/drivers/drv_usart.h
浏览文件 @
fc537808
...
...
@@ -14,17 +14,10 @@
#include <rthw.h>
#include <rtthread.h>
/*
GD32
uart driver */
/*
V85XX
uart driver */
struct
V85xx_uart
{
UART_TypeDef
*
uart_periph
;
IRQn_Type
irqn
;
// rcu_periph_enum per_clk;
// rcu_periph_enum tx_gpio_clk;
// rcu_periph_enum rx_gpio_clk;
// GPIO_TypeDef * tx_port;
// GPIO_TypeDef * rx_port;
// uint16_t tx_pin;
// uint16_t rx_pin;
struct
rt_serial_device
*
serial
;
char
*
device_name
;
...
...
bsp/Vango_V85xx/rtconfig.h
浏览文件 @
fc537808
...
...
@@ -171,8 +171,8 @@
/* entertainment: terminal games and other interesting software packages */
#define SOC_SERIES_
GD32F1
#define SOC_
GD32103C
#define SOC_SERIES_
V85XX
#define SOC_
V85XX
/* On-chip Peripheral Drivers */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录