Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
红岛
rt-thread
提交
ba6f78bd
R
rt-thread
项目概览
红岛
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ba6f78bd
编写于
3月 23, 2022
作者:
mysterywolf
提交者:
GitHub
3月 24, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format code (#5699)
上级
19f0f9e6
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
16 addition
and
16 deletion
+16
-16
bsp/at32/Libraries/rt_drivers/drv_soft_i2c.c
bsp/at32/Libraries/rt_drivers/drv_soft_i2c.c
+1
-1
bsp/at32/Libraries/rt_drivers/drv_usart.c
bsp/at32/Libraries/rt_drivers/drv_usart.c
+1
-1
bsp/bluetrum/libraries/hal_drivers/drv_soft_i2c.c
bsp/bluetrum/libraries/hal_drivers/drv_soft_i2c.c
+1
-1
bsp/gd32/libraries/gd32_drivers/drv_soft_i2c.c
bsp/gd32/libraries/gd32_drivers/drv_soft_i2c.c
+1
-1
bsp/gd32vf103v-eval/drivers/drv_usart.c
bsp/gd32vf103v-eval/drivers/drv_usart.c
+1
-1
bsp/hk32/libraries/rt_drivers/drv_soft_i2c.c
bsp/hk32/libraries/rt_drivers/drv_soft_i2c.c
+1
-1
bsp/hk32/libraries/rt_drivers/drv_usart.c
bsp/hk32/libraries/rt_drivers/drv_usart.c
+1
-1
bsp/n32g452xx/Libraries/rt_drivers/drv_soft_i2c.c
bsp/n32g452xx/Libraries/rt_drivers/drv_soft_i2c.c
+1
-1
bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c
bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c
+1
-1
bsp/stm32/libraries/HAL_Drivers/drv_pulse_encoder.c
bsp/stm32/libraries/HAL_Drivers/drv_pulse_encoder.c
+1
-1
bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c
bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c
+1
-1
bsp/stm32/stm32l4r9-st-eval/board/ports/drv_touch_ft.c
bsp/stm32/stm32l4r9-st-eval/board/ports/drv_touch_ft.c
+1
-1
bsp/tm4c123bsp/libraries/Drivers/drv_spi.c
bsp/tm4c123bsp/libraries/Drivers/drv_spi.c
+1
-1
components/drivers/spi/spi-bit-ops.h
components/drivers/spi/spi-bit-ops.h
+3
-3
未找到文件。
bsp/at32/Libraries/rt_drivers/drv_soft_i2c.c
浏览文件 @
ba6f78bd
...
...
@@ -18,7 +18,7 @@
#if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4)
#error "Please define at least one BSP_USING_I2Cx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
const
struct
at32_soft_i2c_config
soft_i2c_config
[]
=
...
...
bsp/at32/Libraries/rt_drivers/drv_usart.c
浏览文件 @
ba6f78bd
...
...
@@ -15,7 +15,7 @@
#if !defined(BSP_USING_UART1) && !defined(BSP_USING_UART2) && \
!defined(BSP_USING_UART3)
#error "Please define at least one BSP_USING_UARTx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
struct
at32_usart
{
...
...
bsp/bluetrum/libraries/hal_drivers/drv_soft_i2c.c
浏览文件 @
ba6f78bd
...
...
@@ -19,7 +19,7 @@
#if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4)
#error "Please define at least one BSP_USING_I2Cx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
const
struct
ab32_soft_i2c_config
soft_i2c_config
[]
=
...
...
bsp/gd32/libraries/gd32_drivers/drv_soft_i2c.c
浏览文件 @
ba6f78bd
...
...
@@ -16,7 +16,7 @@
#if !defined(BSP_USING_I2C0) && !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3)
#error "Please define at least one BSP_USING_I2Cx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
const
struct
gd32_soft_i2c_config
soft_i2c_config
[]
=
...
...
bsp/gd32vf103v-eval/drivers/drv_usart.c
浏览文件 @
ba6f78bd
...
...
@@ -15,7 +15,7 @@
#if !defined(BSP_USING_UART0) && !defined(BSP_USING_UART1) && !defined(BSP_USING_UART2) \
&& !defined(BSP_USING_UART3) && !defined(BSP_USING_UART4) && !defined(BSP_USING_UART5)
#error "Please define at least one BSP_USING_UARTx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
struct
gd32_usart
{
...
...
bsp/hk32/libraries/rt_drivers/drv_soft_i2c.c
浏览文件 @
ba6f78bd
...
...
@@ -18,7 +18,7 @@
#if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4)
#error "Please define at least one BSP_USING_I2Cx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
const
struct
hk32_soft_i2c_config
soft_i2c_config
[]
=
...
...
bsp/hk32/libraries/rt_drivers/drv_usart.c
浏览文件 @
ba6f78bd
...
...
@@ -14,7 +14,7 @@
#ifdef RT_USING_SERIAL
#if !defined(BSP_USING_UART1) && !defined(BSP_USING_UART2)
#error "Please define at least one BSP_USING_UARTx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
struct
hk32_usart
...
...
bsp/n32g452xx/Libraries/rt_drivers/drv_soft_i2c.c
浏览文件 @
ba6f78bd
...
...
@@ -18,7 +18,7 @@
#if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4)
#error "Please define at least one BSP_USING_I2Cx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
const
struct
n32_soft_i2c_config
soft_i2c_config
[]
=
...
...
bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c
浏览文件 @
ba6f78bd
...
...
@@ -23,7 +23,7 @@
#if !defined(BSP_USING_I2C0) && !defined(BSP_USING_I2C1)
#error "Please define at least one BSP_USING_I2Cx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
const
struct
ra_soft_i2c_config
soft_i2c_config
[]
=
...
...
bsp/stm32/libraries/HAL_Drivers/drv_pulse_encoder.c
浏览文件 @
ba6f78bd
...
...
@@ -19,7 +19,7 @@
#if !defined(BSP_USING_PULSE_ENCODER1) && !defined(BSP_USING_PULSE_ENCODER2) && !defined(BSP_USING_PULSE_ENCODER3) \
&& !defined(BSP_USING_PULSE_ENCODER4) && !defined(BSP_USING_PULSE_ENCODER5) && !defined(BSP_USING_PULSE_ENCODER6)
#error "Please define at least one BSP_USING_PULSE_ENCODERx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
#define AUTO_RELOAD_VALUE 0x7FFF
...
...
bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c
浏览文件 @
ba6f78bd
...
...
@@ -20,7 +20,7 @@
#if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4)
#error "Please define at least one BSP_USING_I2Cx"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
const
struct
stm32_soft_i2c_config
soft_i2c_config
[]
=
...
...
bsp/stm32/stm32l4r9-st-eval/board/ports/drv_touch_ft.c
浏览文件 @
ba6f78bd
...
...
@@ -29,7 +29,7 @@
#define TOUCH_SLAVE_ADDR 0x38U
#else
#error "Please define at least one TOUCH DEVICE"
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#endif
static
struct
rt_i2c_bus_device
*
ft_i2c_bus
;
...
...
bsp/tm4c123bsp/libraries/Drivers/drv_spi.c
浏览文件 @
ba6f78bd
...
...
@@ -19,7 +19,7 @@
#ifdef RT_USING_SPI
#if defined(BSP_USING_SPI0) || defined(BSP_USING_SPI1) || defined(BSP_USING_SPI2) || defined(BSP_USING_SPI3)
/* this driver can be disabled at menuconfig
→ RT-Thread Components →
Device Drivers */
/* this driver can be disabled at menuconfig
-> RT-Thread Components ->
Device Drivers */
#include "tm4c123_config.h"
#include "spi_config.h"
#include <string.h>
...
...
components/drivers/spi/spi-bit-ops.h
浏览文件 @
ba6f78bd
/*
* Copyright (c) 2006-20
18
, RT-Thread Development Team
* Copyright (c) 2006-20
22
, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
...
...
@@ -32,7 +32,7 @@ struct rt_spi_bit_ops
void
(
*
const
dir_miso
)(
void
*
data
,
rt_int32_t
state
);
void
(
*
const
udelay
)(
rt_uint32_t
us
);
rt_uint32_t
delay_us
;
/* sclk
、
mosi and miso line delay */
rt_uint32_t
delay_us
;
/* sclk
,
mosi and miso line delay */
};
struct
rt_spi_bit_obj
...
...
@@ -42,7 +42,7 @@ struct rt_spi_bit_obj
struct
rt_spi_configuration
config
;
};
rt_err_t
rt_spi_bit_add_bus
(
struct
rt_spi_bit_obj
*
obj
,
rt_err_t
rt_spi_bit_add_bus
(
struct
rt_spi_bit_obj
*
obj
,
const
char
*
bus_name
,
struct
rt_spi_bit_ops
*
ops
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录