Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaobo07
rt-thread
提交
34a05bfd
R
rt-thread
项目概览
Xiaobo07
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
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,发现更多精彩内容 >>
提交
34a05bfd
编写于
8月 31, 2022
作者:
R
Rbb666
提交者:
guo
8月 31, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cypress-Modify configuration
上级
bfa35795
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
68 addition
and
59 deletion
+68
-59
bsp/cypress/libraries/HAL_Drivers/drv_i2c.c
bsp/cypress/libraries/HAL_Drivers/drv_i2c.c
+19
-20
bsp/cypress/libraries/HAL_Drivers/uart_config.h
bsp/cypress/libraries/HAL_Drivers/uart_config.h
+40
-39
bsp/cypress/psoc6-cy8cproto-4343w/board/Kconfig
bsp/cypress/psoc6-cy8cproto-4343w/board/Kconfig
+9
-0
未找到文件。
bsp/cypress/libraries/HAL_Drivers/drv_i2c.c
浏览文件 @
34a05bfd
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#define I2C3_CONFIG \
#define I2C3_CONFIG \
{ \
{ \
.name = "i2c3", \
.name = "i2c3", \
.scl_pin =
P6_0,
\
.scl_pin =
BSP_I2C3_SCL_PIN,
\
.sda_pin =
P6_1,
\
.sda_pin =
BSP_I2C3_SDA_PIN,
\
}
}
#endif
/* I2C3_CONFIG */
#endif
/* I2C3_CONFIG */
#endif
#endif
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
#define I2C6_CONFIG \
#define I2C6_CONFIG \
{ \
{ \
.name = "i2c6", \
.name = "i2c6", \
.scl_pin =
P13_0,
\
.scl_pin =
BSP_I2C6_SCL_PIN,
\
.sda_pin =
P13_1,
\
.sda_pin =
BSP_I2C6_SDA_PIN,
\
}
}
#endif
/* I2C6_CONFIG */
#endif
/* I2C6_CONFIG */
...
@@ -58,7 +58,7 @@ struct ifx_i2c
...
@@ -58,7 +58,7 @@ struct ifx_i2c
};
};
static
struct
ifx_i2c_config
i2c_config
[]
=
static
struct
ifx_i2c_config
i2c_config
[]
=
{
{
#ifdef BSP_USING_HW_I2C3
#ifdef BSP_USING_HW_I2C3
I2C3_CONFIG
,
I2C3_CONFIG
,
#endif
#endif
...
@@ -127,11 +127,10 @@ out:
...
@@ -127,11 +127,10 @@ out:
}
}
static
const
struct
rt_i2c_bus_device_ops
i2c_ops
=
static
const
struct
rt_i2c_bus_device_ops
i2c_ops
=
{
{
_i2c_xfer
,
_i2c_xfer
,
RT_NULL
,
RT_NULL
,
RT_NULL
RT_NULL
};
};
void
HAL_I2C_Init
(
struct
ifx_i2c
*
obj
)
void
HAL_I2C_Init
(
struct
ifx_i2c
*
obj
)
{
{
...
...
bsp/cypress/libraries/HAL_Drivers/uart_config.h
浏览文件 @
34a05bfd
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
#include "board.h"
#include "board.h"
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#endif
#ifdef BSP_USING_UART0
#ifdef BSP_USING_UART0
...
@@ -27,44 +28,44 @@ cy_stc_sysint_t UART0_SCB_IRQ_cfg =
...
@@ -27,44 +28,44 @@ cy_stc_sysint_t UART0_SCB_IRQ_cfg =
};
};
#endif
#endif
#ifdef BSP_USING_UART1
#ifdef BSP_USING_UART1
/* UART1 device driver structure */
/* UART1 device driver structure */
cy_stc_sysint_t
UART1_SCB_IRQ_cfg
=
cy_stc_sysint_t
UART1_SCB_IRQ_cfg
=
{
{
.
intrSrc
=
(
IRQn_Type
)
scb_1_interrupt_IRQn
,
.
intrSrc
=
(
IRQn_Type
)
scb_1_interrupt_IRQn
,
.
intrPriority
=
(
7u
),
.
intrPriority
=
(
7u
),
};
};
#endif
#endif
#ifdef BSP_USING_UART2
#ifdef BSP_USING_UART2
/* UART2 device driver structure */
/* UART2 device driver structure */
cy_stc_sysint_t
UART2_SCB_IRQ_cfg
=
cy_stc_sysint_t
UART2_SCB_IRQ_cfg
=
{
{
.
intrSrc
=
(
IRQn_Type
)
scb_2_interrupt_IRQn
,
.
intrSrc
=
(
IRQn_Type
)
scb_2_interrupt_IRQn
,
.
intrPriority
=
(
7u
),
.
intrPriority
=
(
7u
),
};
};
#endif
#endif
#ifdef BSP_USING_UART3
#ifdef BSP_USING_UART3
/* UART3 device driver structure */
/* UART3 device driver structure */
cy_stc_sysint_t
UART3_SCB_IRQ_cfg
=
cy_stc_sysint_t
UART3_SCB_IRQ_cfg
=
{
{
.
intrSrc
=
(
IRQn_Type
)
scb_3_interrupt_IRQn
,
.
intrSrc
=
(
IRQn_Type
)
scb_3_interrupt_IRQn
,
.
intrPriority
=
(
7u
),
.
intrPriority
=
(
7u
),
};
};
#endif
#endif
#ifdef BSP_USING_UART4
#ifdef BSP_USING_UART4
/* UART4 device driver structure */
/* UART4 device driver structure */
cy_stc_sysint_t
UART4_SCB_IRQ_cfg
=
cy_stc_sysint_t
UART4_SCB_IRQ_cfg
=
{
{
.
intrSrc
=
(
IRQn_Type
)
scb_4_interrupt_IRQn
,
.
intrSrc
=
(
IRQn_Type
)
scb_4_interrupt_IRQn
,
.
intrPriority
=
(
7u
),
.
intrPriority
=
(
7u
),
};
};
#endif
#endif
#ifdef BSP_USING_UART5
#ifdef BSP_USING_UART5
/* UART5 device driver structure */
/* UART5 device driver structure */
cy_stc_sysint_t
UART5_SCB_IRQ_cfg
=
cy_stc_sysint_t
UART5_SCB_IRQ_cfg
=
{
{
.
intrSrc
=
(
IRQn_Type
)
scb_5_interrupt_IRQn
,
.
intrSrc
=
(
IRQn_Type
)
scb_5_interrupt_IRQn
,
.
intrPriority
=
(
7u
),
.
intrPriority
=
(
7u
),
};
};
#endif
#endif
#if defined(BSP_USING_UART0)
#if defined(BSP_USING_UART0)
...
@@ -76,10 +77,10 @@ cy_stc_sysint_t UART5_SCB_IRQ_cfg =
...
@@ -76,10 +77,10 @@ cy_stc_sysint_t UART5_SCB_IRQ_cfg =
.rx_pin = P0_2, \
.rx_pin = P0_2, \
.usart_x = SCB0, \
.usart_x = SCB0, \
.intrSrc = scb_0_interrupt_IRQn, \
.intrSrc = scb_0_interrupt_IRQn, \
.userIsr = uart_isr_callback(uart0)
\
.userIsr = uart_isr_callback(uart0)
,
\
.UART_SCB_IRQ_cfg = &UART0_SCB_IRQ_cfg, \
.UART_SCB_IRQ_cfg = &UART0_SCB_IRQ_cfg, \
}
}
void
uart0_isr_callback
(
void
);
void
uart0_isr_callback
(
void
);
#endif
/* UART0_CONFIG */
#endif
/* UART0_CONFIG */
#endif
/* BSP_USING_UART0 */
#endif
/* BSP_USING_UART0 */
...
@@ -92,10 +93,10 @@ void uart0_isr_callback(void);
...
@@ -92,10 +93,10 @@ void uart0_isr_callback(void);
.rx_pin = P10_0, \
.rx_pin = P10_0, \
.usart_x = SCB1, \
.usart_x = SCB1, \
.intrSrc = scb_1_interrupt_IRQn, \
.intrSrc = scb_1_interrupt_IRQn, \
.userIsr = uart_isr_callback(uart1)
\
.userIsr = uart_isr_callback(uart1)
,
\
.UART_SCB_IRQ_cfg = &UART1_SCB_IRQ_cfg, \
.UART_SCB_IRQ_cfg = &UART1_SCB_IRQ_cfg, \
}
}
void
uart1_isr_callback
(
void
);
void
uart1_isr_callback
(
void
);
#endif
/* UART1_CONFIG */
#endif
/* UART1_CONFIG */
#endif
/* BSP_USING_UART1 */
#endif
/* BSP_USING_UART1 */
...
@@ -111,7 +112,7 @@ void uart1_isr_callback(void);
...
@@ -111,7 +112,7 @@ void uart1_isr_callback(void);
.userIsr = uart_isr_callback(uart2), \
.userIsr = uart_isr_callback(uart2), \
.UART_SCB_IRQ_cfg = &UART2_SCB_IRQ_cfg, \
.UART_SCB_IRQ_cfg = &UART2_SCB_IRQ_cfg, \
}
}
void
uart2_isr_callback
(
void
);
void
uart2_isr_callback
(
void
);
#endif
/* UART2_CONFIG */
#endif
/* UART2_CONFIG */
#endif
/* BSP_USING_UART2 */
#endif
/* BSP_USING_UART2 */
...
@@ -127,7 +128,7 @@ void uart2_isr_callback(void);
...
@@ -127,7 +128,7 @@ void uart2_isr_callback(void);
.userIsr = uart_isr_callback(uart3), \
.userIsr = uart_isr_callback(uart3), \
.UART_SCB_IRQ_cfg = &UART3_SCB_IRQ_cfg, \
.UART_SCB_IRQ_cfg = &UART3_SCB_IRQ_cfg, \
}
}
void
uart3_isr_callback
(
void
);
void
uart3_isr_callback
(
void
);
#endif
/* UART3_CONFIG */
#endif
/* UART3_CONFIG */
#endif
/* BSP_USING_UART3 */
#endif
/* BSP_USING_UART3 */
...
@@ -143,7 +144,7 @@ void uart3_isr_callback(void);
...
@@ -143,7 +144,7 @@ void uart3_isr_callback(void);
.userIsr = uart_isr_callback(uart4), \
.userIsr = uart_isr_callback(uart4), \
.UART_SCB_IRQ_cfg = &UART4_SCB_IRQ_cfg, \
.UART_SCB_IRQ_cfg = &UART4_SCB_IRQ_cfg, \
}
}
void
uart4_isr_callback
(
void
);
void
uart4_isr_callback
(
void
);
#endif
/* UART4_CONFIG */
#endif
/* UART4_CONFIG */
#endif
/* BSP_USING_UART4 */
#endif
/* BSP_USING_UART4 */
...
@@ -159,7 +160,7 @@ void uart4_isr_callback(void);
...
@@ -159,7 +160,7 @@ void uart4_isr_callback(void);
.userIsr = uart_isr_callback(uart5), \
.userIsr = uart_isr_callback(uart5), \
.UART_SCB_IRQ_cfg = &UART5_SCB_IRQ_cfg, \
.UART_SCB_IRQ_cfg = &UART5_SCB_IRQ_cfg, \
}
}
void
uart5_isr_callback
(
void
);
void
uart5_isr_callback
(
void
);
#endif
/* UART5_CONFIG */
#endif
/* UART5_CONFIG */
#endif
/* BSP_USING_UART5 */
#endif
/* BSP_USING_UART5 */
...
...
bsp/cypress/psoc6-cy8cproto-4343w/board/Kconfig
浏览文件 @
34a05bfd
...
@@ -280,10 +280,19 @@ menu "Board extended module Drivers"
...
@@ -280,10 +280,19 @@ menu "Board extended module Drivers"
select RW007_NOT_USE_EXAMPLE_DRIVERS
select RW007_NOT_USE_EXAMPLE_DRIVERS
if BSP_USING_RW007
if BSP_USING_RW007
comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96"
config IFX_RW007_SPI_BUS_NAME
config IFX_RW007_SPI_BUS_NAME
string "RW007 BUS NAME"
string "RW007 BUS NAME"
default "spi3"
default "spi3"
config IFX_RW007_WIFI_SSID
string "Wi-Fi SSID"
default "realthread_VIP"
config IFX_RW007_WIFI_PASSWORD
string "Wi-Fi Password"
default "your wifi password"
config IFX_RW007_CS_PIN
config IFX_RW007_CS_PIN
int "(INT)CS pin index"
int "(INT)CS pin index"
range 1 113
range 1 113
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录