mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 04:27:07 +08:00
Cypress-Modify configuration
This commit is contained in:
parent
bfa357958d
commit
34a05bfdf7
@ -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 @@
|
|||||||
#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 */
|
||||||
|
|
||||||
@ -130,8 +130,7 @@ 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)
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
@ -76,7 +77,7 @@ 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);
|
||||||
@ -92,7 +93,7 @@ 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);
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user