diff options
| author | Meco Man <[email protected]> | 2022-12-25 03:22:11 -0500 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-12-26 02:10:30 -0500 |
| commit | 20a6f14e893c8339654bdda08c967454e3b2c688 (patch) | |
| tree | 477c87685c2a798df7d3e46c223868bf531aea75 /bsp | |
| parent | 2570fab0e1c4456e4384c1ed17f186431f0d0596 (diff) | |
use PIN_IRQ_PIN_NONE to replace RT_PIN_NONE
Diffstat (limited to 'bsp')
6 files changed, 10 insertions, 10 deletions
diff --git a/bsp/allwinner/libraries/drivers/touch/drv_touch.c b/bsp/allwinner/libraries/drivers/touch/drv_touch.c index 7ee21ff0f5..9cf0260bfe 100644 --- a/bsp/allwinner/libraries/drivers/touch/drv_touch.c +++ b/bsp/allwinner/libraries/drivers/touch/drv_touch.c @@ -264,7 +264,7 @@ int rt_touch_init(void) else if (TOUCH_POLL_MODE == current_driver->check_mode) { rt_thread_t thread; - irq_pin = RT_PIN_NONE; // No interrupt pins are used + irq_pin = PIN_IRQ_PIN_NONE; // No interrupt pins are used thread = rt_thread_create("touch", touch_poll_entry, RT_NULL, 2048, 16, 20); if (thread == RT_NULL) { diff --git a/bsp/nuvoton/numaker-iot-m467/board/board_dev.c b/bsp/nuvoton/numaker-iot-m467/board/board_dev.c index 795fd11055..0c78b0bb7e 100644 --- a/bsp/nuvoton/numaker-iot-m467/board/board_dev.c +++ b/bsp/nuvoton/numaker-iot-m467/board/board_dev.c @@ -167,7 +167,7 @@ int rt_hw_nct7717u_port(void) struct rt_sensor_config cfg; cfg.intf.dev_name = "i2c2"; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; return rt_hw_nct7717u_init("nct7717u", &cfg); } diff --git a/bsp/nuvoton/numaker-iot-m487/board/board_dev.c b/bsp/nuvoton/numaker-iot-m487/board/board_dev.c index 972b09a9e9..97288f2d74 100644 --- a/bsp/nuvoton/numaker-iot-m487/board/board_dev.c +++ b/bsp/nuvoton/numaker-iot-m487/board/board_dev.c @@ -159,7 +159,7 @@ int rt_hw_max31875_port(void) cfg.intf.dev_name = "i2c1"; cfg.intf.user_data = (void *)MAX31875_I2C_SLAVE_ADR_R0; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; rt_hw_max31875_init("max31875", &cfg); return 0; @@ -175,7 +175,7 @@ int rt_hw_bmx055_port(void) struct rt_sensor_config cfg; cfg.intf.dev_name = "i2c2"; cfg.intf.user_data = (void *)0; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; rt_hw_bmx055_init("bmx055", &cfg); return 0; diff --git a/bsp/nuvoton/numaker-m467hj/board/board_dev.c b/bsp/nuvoton/numaker-m467hj/board/board_dev.c index e1399a6cbf..6d405e6538 100644 --- a/bsp/nuvoton/numaker-m467hj/board/board_dev.c +++ b/bsp/nuvoton/numaker-m467hj/board/board_dev.c @@ -347,7 +347,7 @@ int rt_hw_nct7717u_port(void) struct rt_sensor_config cfg; cfg.intf.dev_name = "i2c2"; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; return rt_hw_nct7717u_init("nct7717u", &cfg); } diff --git a/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c b/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c index 72d2ad1ff7..25d3c1cd78 100644 --- a/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c +++ b/bsp/nuvoton/numaker-pfm-m487/board/board_dev.c @@ -183,7 +183,7 @@ int rt_hw_max31875_port(void) cfg.intf.dev_name = "i2c1"; cfg.intf.user_data = (void *)MAX31875_I2C_SLAVE_ADR_R0; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; rt_hw_max31875_init("max31875", &cfg); return 0; @@ -199,7 +199,7 @@ int rt_hw_mpu6500_port(void) cfg.intf.dev_name = "i2c2"; cfg.intf.user_data = (void *)MPU6XXX_ADDR_DEFAULT; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; rt_hw_mpu6xxx_init("mpu", &cfg); return 0; diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/sensor_port.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/sensor_port.c index 887d18444e..2b3c3f584f 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/sensor_port.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/sensor_port.c @@ -20,7 +20,7 @@ static int rt_hw_icm20608_port(void) cfg.intf.dev_name = "i2c3"; cfg.intf.type = RT_SENSOR_INTF_I2C; cfg.intf.arg = (void *)MPU6XXX_ADDR_DEFAULT; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; rt_hw_mpu6xxx_init("icm", &cfg); @@ -39,7 +39,7 @@ static int rt_hw_ap3216c_port(void) cfg.intf.dev_name = "i2c3"; cfg.intf.type = RT_SENSOR_INTF_I2C; cfg.intf.arg = RT_NULL; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; rt_hw_ap3216c_init("ap3216c", &cfg); @@ -58,7 +58,7 @@ static int rt_hw_aht10_port(void) cfg.intf.dev_name = "i2c4"; cfg.intf.type = RT_SENSOR_INTF_I2C; cfg.intf.arg = (void *)AHT10_I2C_ADDR; - cfg.irq_pin.pin = RT_PIN_NONE; + cfg.irq_pin.pin = PIN_IRQ_PIN_NONE; rt_hw_aht10_init("aht10", &cfg); |
