diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_adc.c b/bsp/lpc55sxx/Libraries/drivers/drv_adc.c index a72d4b7421..30dab002fb 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_adc.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_adc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_adc.h b/bsp/lpc55sxx/Libraries/drivers/drv_adc.h index 4de600b483..2aca3ca8d8 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_adc.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_adc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.c b/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.c index 728591c028..98393fd619 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.h b/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.h index be0aca27f0..22dd018347 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_hwtimer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_i2c.c b/bsp/lpc55sxx/Libraries/drivers/drv_i2c.c index 4df6eac6f2..4dd88693b8 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_i2c.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_i2c.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -17,6 +17,8 @@ #ifdef RT_USING_I2C +#define i2c_dbg rt_kprintf + struct lpc_i2c_bus { struct rt_i2c_bus_device parent; @@ -112,7 +114,7 @@ int rt_hw_i2c_init(void) rt_memset((void *)&lpc_i2c1, 0, sizeof(struct lpc_i2c_bus)); lpc_i2c1.parent.ops = &i2c_ops; lpc_i2c1.I2C = I2C1; - lpc_i2c1.device_name = "LPC Flexcomm1 as I2C"; + lpc_i2c1.device_name = "i2c1"; rt_i2c_bus_device_register(&lpc_i2c1.parent, "i2c1"); #endif /* BSP_USING_I2C1 */ @@ -132,8 +134,8 @@ int rt_hw_i2c_init(void) rt_memset((void *)&lpc_i2c4, 0, sizeof(struct lpc_i2c_bus)); lpc_i2c4.parent.ops = &i2c_ops; lpc_i2c4.I2C = I2C4; - lpc_i2c4.device_name = "LPC Flexcomm4 as I2C"; - rt_i2c_bus_device_register(&lpc_i2c4.parent, BSP_USING_MMA8562I2C); + lpc_i2c4.device_name = "i2c4"; + rt_i2c_bus_device_register(&lpc_i2c4.parent, "i2c4"); #endif /* BSP_USING_I2C4 */ diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_i2c.h b/bsp/lpc55sxx/Libraries/drivers/drv_i2c.h index b534c6c1da..ec80c993d3 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_i2c.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_i2c.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_key.c b/bsp/lpc55sxx/Libraries/drivers/drv_key.c index 144adfd384..16b7f19ecc 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_key.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_key.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_key.h b/bsp/lpc55sxx/Libraries/drivers/drv_key.h index b12c2df3bf..259e31c23c 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_key.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_key.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_led.c b/bsp/lpc55sxx/Libraries/drivers/drv_led.c index 9b3a660502..8e3e59eeea 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_led.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_led.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_led.h b/bsp/lpc55sxx/Libraries/drivers/drv_led.h index bcbca7d8f5..c00869b86b 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_led.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_led.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_log.h b/bsp/lpc55sxx/Libraries/drivers/drv_log.h index e1b61708cc..2d44d4e901 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_log.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_log.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_mma8562.c b/bsp/lpc55sxx/Libraries/drivers/drv_mma8562.c index f1d4a0afec..f0a0a168d7 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_mma8562.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_mma8562.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_pin.c b/bsp/lpc55sxx/Libraries/drivers/drv_pin.c index 274be0190b..bafab0a73b 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_pin.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_pin.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_pin.h b/bsp/lpc55sxx/Libraries/drivers/drv_pin.h index 2dfe706089..331741a907 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_pin.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_pin.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_pwm.c b/bsp/lpc55sxx/Libraries/drivers/drv_pwm.c index 883bcfc03d..aec4fe066d 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_pwm.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_pwm.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_pwm.h b/bsp/lpc55sxx/Libraries/drivers/drv_pwm.h index 162ff7e0ee..264d464e76 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_pwm.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_pwm.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_rtc.c b/bsp/lpc55sxx/Libraries/drivers/drv_rtc.c index 4d118876a5..c7a3d66834 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_rtc.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_rtc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_rtc.h b/bsp/lpc55sxx/Libraries/drivers/drv_rtc.h index ec9751110f..d78b161d42 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_rtc.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_rtc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_sd.c b/bsp/lpc55sxx/Libraries/drivers/drv_sd.c index 8ea8a357eb..81ff2a9009 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_sd.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_sd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_sd.h b/bsp/lpc55sxx/Libraries/drivers/drv_sd.h index 453c402b54..05695e8801 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_sd.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_sd.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_spi.c b/bsp/lpc55sxx/Libraries/drivers/drv_spi.c index 20770f1297..f2e200e418 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_spi.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_spi.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_spi.h b/bsp/lpc55sxx/Libraries/drivers/drv_spi.h index 704c48c46c..190d32bef7 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_spi.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_spi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_uart.c b/bsp/lpc55sxx/Libraries/drivers/drv_uart.c index 3b60eb1b2e..75ac40bdc3 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_uart.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_uart.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_uart.h b/bsp/lpc55sxx/Libraries/drivers/drv_uart.h index 639ead4b67..22b3e4aa4f 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_uart.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_uart.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c b/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c index 13da1cccc6..67524be683 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c +++ b/bsp/lpc55sxx/Libraries/drivers/drv_wdt.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/Libraries/drivers/drv_wdt.h b/bsp/lpc55sxx/Libraries/drivers/drv_wdt.h index c4d06536f3..ce274481b6 100644 --- a/bsp/lpc55sxx/Libraries/drivers/drv_wdt.h +++ b/bsp/lpc55sxx/Libraries/drivers/drv_wdt.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2022, RT-Thread Development Team + * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/.config b/bsp/lpc55sxx/lpc55s69_nxp_evk/.config index 5fcebb8531..e568188e33 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/.config +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/.config @@ -9,6 +9,7 @@ CONFIG_SOC_LPC55S69=y # CONFIG_RT_NAME_MAX=8 # CONFIG_RT_USING_ARCH_DATA_TYPE is not set +# CONFIG_RT_USING_SMART is not set # CONFIG_RT_USING_SMP is not set CONFIG_RT_ALIGN_SIZE=4 # CONFIG_RT_THREAD_PRIORITY_8 is not set @@ -77,17 +78,20 @@ CONFIG_RT_USING_HEAP=y # CONFIG_RT_USING_DEVICE=y # CONFIG_RT_USING_DEVICE_OPS is not set +# CONFIG_RT_USING_DM is not set # CONFIG_RT_USING_INTERRUPT_INFO is not set CONFIG_RT_USING_CONSOLE=y CONFIG_RT_CONSOLEBUF_SIZE=128 CONFIG_RT_CONSOLE_DEVICE_NAME="uart0" CONFIG_RT_VER_NUM=0x50000 -CONFIG_ARCH_ARM=y +# CONFIG_RT_USING_CACHE is not set +# CONFIG_ARCH_ARM_BOOTWITH_FLUSH_CACHE is not set +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set CONFIG_RT_USING_CPU_FFS=y +CONFIG_ARCH_ARM=y CONFIG_ARCH_ARM_CORTEX_M=y CONFIG_ARCH_ARM_CORTEX_SECURE=y CONFIG_ARCH_ARM_CORTEX_M33=y -# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set # # RT-Thread Components @@ -114,12 +118,12 @@ CONFIG_FINSH_USING_DESCRIPTION=y CONFIG_FINSH_ARG_MAX=10 # CONFIG_RT_USING_DFS is not set # CONFIG_RT_USING_FAL is not set -# CONFIG_RT_USING_LWP is not set # # Device Drivers # CONFIG_RT_USING_DEVICE_IPC=y +CONFIG_RT_UNAMED_PIPE_NUMBER=64 # CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set CONFIG_RT_USING_SERIAL=y CONFIG_RT_USING_SERIAL_V1=y @@ -129,15 +133,21 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 # CONFIG_RT_USING_CAN is not set # CONFIG_RT_USING_HWTIMER is not set # CONFIG_RT_USING_CPUTIME is not set -# CONFIG_RT_USING_I2C is not set +CONFIG_RT_USING_I2C=y +# CONFIG_RT_I2C_DEBUG is not set +# CONFIG_RT_USING_I2C_BITOPS is not set # CONFIG_RT_USING_PHY is not set CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_ADC is not set # CONFIG_RT_USING_DAC is not set +# CONFIG_RT_USING_NULL is not set +# CONFIG_RT_USING_ZERO is not set +# CONFIG_RT_USING_RANDOM is not set # CONFIG_RT_USING_PWM is not set # CONFIG_RT_USING_MTD_NOR is not set # CONFIG_RT_USING_MTD_NAND is not set # CONFIG_RT_USING_PM is not set +# CONFIG_RT_USING_FDT is not set # CONFIG_RT_USING_RTC is not set # CONFIG_RT_USING_SDIO is not set # CONFIG_RT_USING_SPI is not set @@ -145,10 +155,13 @@ CONFIG_RT_USING_PIN=y # CONFIG_RT_USING_AUDIO is not set # CONFIG_RT_USING_SENSOR is not set # CONFIG_RT_USING_TOUCH is not set +# CONFIG_RT_USING_LCD is not set # CONFIG_RT_USING_HWCRYPTO is not set # CONFIG_RT_USING_PULSE_ENCODER is not set # CONFIG_RT_USING_INPUT_CAPTURE is not set +# CONFIG_RT_USING_DEV_BUS is not set # CONFIG_RT_USING_WIFI is not set +# CONFIG_RT_USING_VIRTIO is not set # # Using USB @@ -293,6 +306,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_AGILE_FTP is not set # CONFIG_PKG_USING_EMBEDDEDPROTO is not set # CONFIG_PKG_USING_RT_LINK_HW is not set +# CONFIG_PKG_USING_RYANMQTT is not set +# CONFIG_PKG_USING_RYANW5500 is not set # CONFIG_PKG_USING_LORA_PKT_FWD is not set # CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set # CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set @@ -504,7 +519,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # # sensors drivers # -# CONFIG_PKG_USING_FINGERPRINT is not set # CONFIG_PKG_USING_LSM6DSM is not set # CONFIG_PKG_USING_LSM6DSL is not set # CONFIG_PKG_USING_LPS22HB is not set @@ -564,6 +578,10 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_AD7746 is not set # CONFIG_PKG_USING_ADT74XX is not set # CONFIG_PKG_USING_MAX17048 is not set +# CONFIG_PKG_USING_AS7341 is not set +# CONFIG_PKG_USING_CW2015 is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_PAJ7620 is not set # # touch drivers @@ -577,10 +595,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_FT6236 is not set # CONFIG_PKG_USING_XPT2046_TOUCH is not set # CONFIG_PKG_USING_REALTEK_AMEBA is not set -# CONFIG_PKG_USING_AS7341 is not set # CONFIG_PKG_USING_STM32_SDIO is not set # CONFIG_PKG_USING_ESP_IDF is not set -# CONFIG_PKG_USING_ICM20608 is not set # CONFIG_PKG_USING_BUTTON is not set # CONFIG_PKG_USING_PCF8574 is not set # CONFIG_PKG_USING_SX12XX is not set @@ -620,7 +636,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_CAN_YMODEM is not set # CONFIG_PKG_USING_LORA_RADIO_DRIVER is not set # CONFIG_PKG_USING_QLED is not set -# CONFIG_PKG_USING_PAJ7620 is not set # CONFIG_PKG_USING_AGILE_CONSOLE is not set # CONFIG_PKG_USING_LD3320 is not set # CONFIG_PKG_USING_WK2124 is not set @@ -651,11 +666,11 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_BL_MCU_SDK is not set # CONFIG_PKG_USING_SOFT_SERIAL is not set # CONFIG_PKG_USING_MB85RS16 is not set -# CONFIG_PKG_USING_CW2015 is not set # CONFIG_PKG_USING_RFM300 is not set # CONFIG_PKG_USING_IO_INPUT_FILTER is not set # CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set # CONFIG_PKG_USING_LRF_NV7LIDAR is not set +# CONFIG_PKG_USING_FINGERPRINT is not set # # AI packages @@ -737,6 +752,8 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_SLCAN2RTT is not set # CONFIG_PKG_USING_SOEM is not set # CONFIG_PKG_USING_QPARAM is not set +# CONFIG_PKG_USING_CorevMCU_CLI is not set +# CONFIG_PKG_USING_GET_IRQ_PRIORITY is not set # # Arduino libraries @@ -757,10 +774,13 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8 # CONFIG_PKG_USING_ARDUINO_CAPACITIVESENSOR is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ADXL375 is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VL53L0X is not set +# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VL53L1X is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SENSOR is not set +# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VL6180X is not set # CONFIG_PKG_USING_ADAFRUIT_MAX31855 is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX31865 is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX31856 is not set +# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX6675 is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MLX90614 is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LSM9DS1 is not set # CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AHTX0 is not set @@ -955,7 +975,11 @@ CONFIG_BSP_USING_UART0=y # CONFIG_HW_UART0_BAUDRATE_9600 is not set CONFIG_HW_UART0_BAUDRATE_115200=y # CONFIG_BSP_USING_UART2 is not set -# CONFIG_BSP_USING_I2C is not set +CONFIG_BSP_USING_I2C=y +# CONFIG_BSP_USING_I2C1 is not set +CONFIG_BSP_USING_I2C4=y +CONFIG_HW_I2C4_BAUDRATE_100kHZ=y +# CONFIG_HW_I2C4_BAUDRATE_400kHZ is not set # CONFIG_BSP_USING_SPI is not set # CONFIG_BSP_USING_ADC is not set # CONFIG_BSP_USING_SDIO is not set @@ -969,7 +993,8 @@ CONFIG_HW_UART0_BAUDRATE_115200=y # CONFIG_BSP_USING_LED=y CONFIG_BSP_USING_KEY=y -# CONFIG_BSP_USING_MMA8562 is not set +CONFIG_BSP_USING_MMA8562=y +CONFIG_BSP_USING_MMA8562I2C="i2c4" # # Board extended module Drivers diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/board/MCUX_Config/board/pin_mux.c b/bsp/lpc55sxx/lpc55s69_nxp_evk/board/MCUX_Config/board/pin_mux.c index 907fd25616..0566a6dcb0 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/board/MCUX_Config/board/pin_mux.c +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/board/MCUX_Config/board/pin_mux.c @@ -259,30 +259,6 @@ void BOARD_InitPins(void) * : Digital mode, digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_2_DIGIMODE_DIGITAL)); - IOCON->PIO[1][20] = ((IOCON->PIO[1][20] & - /* Mask bits to zero which are setting */ - (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) - - /* Selects pin function. - * : PORT120 (pin 4) is configured as FC4_TXD_SCL_MISO_WS. */ - | IOCON_PIO_FUNC(PIO1_20_FUNC_ALT5) - - /* Select Digital mode. - * : Digital mode, digital input is enabled. */ - | IOCON_PIO_DIGIMODE(PIO1_20_DIGIMODE_DIGITAL)); - - IOCON->PIO[1][21] = ((IOCON->PIO[1][21] & - /* Mask bits to zero which are setting */ - (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) - - /* Selects pin function. - * : PORT121 (pin 30) is configured as FC4_RXD_SDA_MOSI_DATA. */ - | IOCON_PIO_FUNC(PIO1_21_FUNC_ALT5) - - /* Select Digital mode. - * : Digital mode, digital input is enabled. */ - | IOCON_PIO_DIGIMODE(PIO1_21_DIGIMODE_DIGITAL)); - IOCON->PIO[1][24] = ((IOCON->PIO[1][24] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) @@ -342,6 +318,12 @@ void BOARD_InitPins(void) /* Select Digital mode. * : Digital mode, digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_7_DIGIMODE_DIGITAL)); + + + /* I2C4 */ + IOCON_PinMuxSet(IOCON, 1U, 20, 5 | IOCON_PIO_MODE_INACT | IOCON_PIO_SLEW_STANDARD | IOCON_PIO_INV_DI | IOCON_PIO_DIGITAL_EN | IOCON_PIO_OPENDRAIN_DI); + IOCON_PinMuxSet(IOCON, 1U, 21, 5 | IOCON_PIO_MODE_INACT | IOCON_PIO_SLEW_STANDARD | IOCON_PIO_INV_DI | IOCON_PIO_DIGITAL_EN | IOCON_PIO_OPENDRAIN_DI); + } /*********************************************************************************************************************** * EOF diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/project.ewp b/bsp/lpc55sxx/lpc55s69_nxp_evk/project.ewp index 917474af0f..7856d4de56 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/project.ewp +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/project.ewp @@ -1176,6 +1176,12 @@ DeviceDrivers + + $PROJ_DIR$\..\..\..\components\drivers\i2c\i2c_core.c + + + $PROJ_DIR$\..\..\..\components\drivers\i2c\i2c_dev.c + $PROJ_DIR$\..\..\..\components\drivers\ipc\completion.c @@ -1215,12 +1221,18 @@ $PROJ_DIR$\board\board.c + + $PROJ_DIR$\..\Libraries\drivers\drv_i2c.c + $PROJ_DIR$\..\Libraries\drivers\drv_key.c $PROJ_DIR$\..\Libraries\drivers\drv_led.c + + $PROJ_DIR$\..\Libraries\drivers\drv_mma8562.c + $PROJ_DIR$\..\Libraries\drivers\drv_pin.c diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvoptx b/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvoptx index 7ba09238db..653085f1b7 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvoptx +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvoptx @@ -322,7 +322,7 @@ CPU - 1 + 0 0 0 0 @@ -413,6 +413,30 @@ 0 0 0 + ..\..\..\components\drivers\i2c\i2c_core.c + i2c_core.c + 0 + 0 + + + 4 + 17 + 1 + 0 + 0 + 0 + ..\..\..\components\drivers\i2c\i2c_dev.c + i2c_dev.c + 0 + 0 + + + 4 + 18 + 1 + 0 + 0 + 0 ..\..\..\components\drivers\ipc\completion.c completion.c 0 @@ -420,7 +444,7 @@ 4 - 17 + 19 1 0 0 @@ -432,7 +456,7 @@ 4 - 18 + 20 1 0 0 @@ -444,7 +468,7 @@ 4 - 19 + 21 1 0 0 @@ -456,7 +480,7 @@ 4 - 20 + 22 1 0 0 @@ -468,7 +492,7 @@ 4 - 21 + 23 1 0 0 @@ -480,7 +504,7 @@ 4 - 22 + 24 1 0 0 @@ -492,7 +516,7 @@ 4 - 23 + 25 1 0 0 @@ -504,7 +528,7 @@ 4 - 24 + 26 1 0 0 @@ -518,13 +542,13 @@ Drivers - 0 + 1 0 0 0 5 - 25 + 27 1 0 0 @@ -536,7 +560,7 @@ 5 - 26 + 28 1 0 0 @@ -548,7 +572,7 @@ 5 - 27 + 29 1 0 0 @@ -560,7 +584,19 @@ 5 - 28 + 30 + 1 + 0 + 0 + 0 + ..\Libraries\drivers\drv_i2c.c + drv_i2c.c + 0 + 0 + + + 5 + 31 1 0 0 @@ -572,7 +608,7 @@ 5 - 29 + 32 1 0 0 @@ -584,7 +620,19 @@ 5 - 30 + 33 + 1 + 0 + 0 + 0 + ..\Libraries\drivers\drv_mma8562.c + drv_mma8562.c + 0 + 0 + + + 5 + 34 1 0 0 @@ -596,7 +644,7 @@ 5 - 31 + 35 1 0 0 @@ -616,7 +664,7 @@ 0 6 - 32 + 36 1 0 0 @@ -628,7 +676,7 @@ 6 - 33 + 37 1 0 0 @@ -640,7 +688,7 @@ 6 - 34 + 38 1 0 0 @@ -652,7 +700,7 @@ 6 - 35 + 39 1 0 0 @@ -672,7 +720,7 @@ 0 7 - 36 + 40 1 0 0 @@ -684,7 +732,7 @@ 7 - 37 + 41 1 0 0 @@ -696,7 +744,7 @@ 7 - 38 + 42 1 0 0 @@ -708,7 +756,7 @@ 7 - 39 + 43 1 0 0 @@ -720,7 +768,7 @@ 7 - 40 + 44 1 0 0 @@ -732,7 +780,7 @@ 7 - 41 + 45 1 0 0 @@ -744,7 +792,7 @@ 7 - 42 + 46 1 0 0 @@ -756,7 +804,7 @@ 7 - 43 + 47 1 0 0 @@ -768,7 +816,7 @@ 7 - 44 + 48 1 0 0 @@ -780,7 +828,7 @@ 7 - 45 + 49 1 0 0 @@ -792,7 +840,7 @@ 7 - 46 + 50 1 0 0 @@ -804,7 +852,7 @@ 7 - 47 + 51 1 0 0 @@ -816,7 +864,7 @@ 7 - 48 + 52 1 0 0 @@ -836,7 +884,7 @@ 0 8 - 49 + 53 1 0 0 @@ -848,7 +896,7 @@ 8 - 50 + 54 1 0 0 @@ -860,7 +908,7 @@ 8 - 51 + 55 1 0 0 @@ -872,7 +920,7 @@ 8 - 52 + 56 1 0 0 @@ -884,7 +932,7 @@ 8 - 53 + 57 1 0 0 @@ -896,7 +944,7 @@ 8 - 54 + 58 1 0 0 @@ -908,7 +956,7 @@ 8 - 55 + 59 1 0 0 @@ -920,7 +968,7 @@ 8 - 56 + 60 1 0 0 @@ -932,7 +980,7 @@ 8 - 57 + 61 1 0 0 @@ -944,7 +992,7 @@ 8 - 58 + 62 1 0 0 @@ -956,7 +1004,7 @@ 8 - 59 + 63 1 0 0 @@ -968,7 +1016,7 @@ 8 - 60 + 64 1 0 0 @@ -980,7 +1028,7 @@ 8 - 61 + 65 1 0 0 @@ -992,7 +1040,7 @@ 8 - 62 + 66 1 0 0 @@ -1004,7 +1052,7 @@ 8 - 63 + 67 1 0 0 @@ -1016,7 +1064,7 @@ 8 - 64 + 68 1 0 0 @@ -1028,7 +1076,7 @@ 8 - 65 + 69 1 0 0 @@ -1040,7 +1088,7 @@ 8 - 66 + 70 1 0 0 @@ -1052,7 +1100,7 @@ 8 - 67 + 71 1 0 0 @@ -1064,7 +1112,7 @@ 8 - 68 + 72 1 0 0 @@ -1076,7 +1124,7 @@ 8 - 69 + 73 1 0 0 @@ -1088,7 +1136,7 @@ 8 - 70 + 74 1 0 0 @@ -1100,7 +1148,7 @@ 8 - 71 + 75 1 0 0 @@ -1112,7 +1160,7 @@ 8 - 72 + 76 1 0 0 @@ -1124,7 +1172,7 @@ 8 - 73 + 77 1 0 0 @@ -1136,7 +1184,7 @@ 8 - 74 + 78 1 0 0 @@ -1148,7 +1196,7 @@ 8 - 75 + 79 1 0 0 @@ -1160,7 +1208,7 @@ 8 - 76 + 80 1 0 0 @@ -1172,7 +1220,7 @@ 8 - 77 + 81 1 0 0 @@ -1184,7 +1232,7 @@ 8 - 78 + 82 1 0 0 @@ -1196,7 +1244,7 @@ 8 - 79 + 83 1 0 0 @@ -1208,7 +1256,7 @@ 8 - 80 + 84 1 0 0 @@ -1220,7 +1268,7 @@ 8 - 81 + 85 1 0 0 @@ -1232,7 +1280,7 @@ 8 - 82 + 86 1 0 0 @@ -1244,7 +1292,7 @@ 8 - 83 + 87 1 0 0 @@ -1256,7 +1304,7 @@ 8 - 84 + 88 1 0 0 @@ -1268,7 +1316,7 @@ 8 - 85 + 89 2 0 0 @@ -1280,7 +1328,7 @@ 8 - 86 + 90 1 0 0 @@ -1292,7 +1340,7 @@ 8 - 87 + 91 1 0 0 @@ -1304,7 +1352,7 @@ 8 - 88 + 92 1 0 0 @@ -1316,7 +1364,7 @@ 8 - 89 + 93 1 0 0 diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvprojx b/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvprojx index bd986400a1..7eda4f51b6 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvprojx +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/project.uvprojx @@ -10,7 +10,7 @@ rtthread-lpc55s6x 0x4 ARM-ADS - 6160000::V6.16::ARMCLANG + 6190000::V6.19::ARMCLANG 1 @@ -186,6 +186,7 @@ 2 0 0 + 0 1 0 8 @@ -339,7 +340,7 @@ --target=arm-arm-none-eabi __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, DEBUG - ..\..\..\components\libc\posix\ipc;board;..\..\..\components\drivers\include;board\MCUX_Config\board;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\Libraries\LPC55S6X\middleware\sdmmc\port;..\Libraries\drivers;..\..\..\components\libc\posix\io\poll;..\Libraries\drivers\config;..\..\..\components\finsh;..\..\..\components\libc\compilers\common\include;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m33;..\..\..\components\drivers\include;..\Libraries\LPC55S6X\middleware\sdmmc\inc;..\..\..\components\libc\posix\io\stdio;applications;..\Libraries\CMSIS\Core\Include;..\Libraries\LPC55S6X\components\codec;.;..\..\..\components\libc\compilers\common\extension;..\Libraries\LPC55S6X\LPC55S6X;..\Libraries\LPC55S6X\LPC55S6X\drivers;..\..\..\components\drivers\include;..\..\..\include + ..\..\..\components\libc\posix\ipc;board;..\..\..\components\drivers\include;board\MCUX_Config\board;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\Libraries\LPC55S6X\middleware\sdmmc\port;..\Libraries\drivers;..\..\..\components\libc\posix\io\poll;..\Libraries\drivers\config;..\..\..\components\finsh;..\..\..\components\libc\compilers\common\include;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m33;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\Libraries\LPC55S6X\middleware\sdmmc\inc;..\..\..\components\libc\posix\io\stdio;applications;..\Libraries\CMSIS\Core\Include;..\Libraries\LPC55S6X\components\codec;.;..\..\..\components\libc\compilers\common\extension;..\Libraries\LPC55S6X\LPC55S6X;..\Libraries\LPC55S6X\LPC55S6X\drivers;..\..\..\components\drivers\include;..\..\..\include @@ -473,6 +474,16 @@ DeviceDrivers + + i2c_core.c + 1 + ..\..\..\components\drivers\i2c\i2c_core.c + + + i2c_dev.c + 1 + ..\..\..\components\drivers\i2c\i2c_dev.c + completion.c 1 @@ -538,6 +549,11 @@ 1 board\board.c + + drv_i2c.c + 1 + ..\Libraries\drivers\drv_i2c.c + drv_key.c 1 @@ -548,6 +564,11 @@ 1 ..\Libraries\drivers\drv_led.c + + drv_mma8562.c + 1 + ..\Libraries\drivers\drv_mma8562.c + drv_pin.c 1 diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/rtconfig.h b/bsp/lpc55sxx/lpc55s69_nxp_evk/rtconfig.h index 0826f64487..ade52ef33b 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/rtconfig.h +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/rtconfig.h @@ -49,8 +49,8 @@ #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart0" #define RT_VER_NUM 0x50000 -#define ARCH_ARM #define RT_USING_CPU_FFS +#define ARCH_ARM #define ARCH_ARM_CORTEX_M #define ARCH_ARM_CORTEX_SECURE #define ARCH_ARM_CORTEX_M33 @@ -78,10 +78,12 @@ /* Device Drivers */ #define RT_USING_DEVICE_IPC +#define RT_UNAMED_PIPE_NUMBER 64 #define RT_USING_SERIAL #define RT_USING_SERIAL_V1 #define RT_SERIAL_USING_DMA #define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_I2C #define RT_USING_PIN /* Using USB */ @@ -234,11 +236,16 @@ #define BSP_USING_UART #define BSP_USING_UART0 #define HW_UART0_BAUDRATE_115200 +#define BSP_USING_I2C +#define BSP_USING_I2C4 +#define HW_I2C4_BAUDRATE_100kHZ /* Onboard Peripheral Drivers */ #define BSP_USING_LED #define BSP_USING_KEY +#define BSP_USING_MMA8562 +#define BSP_USING_MMA8562I2C "i2c4" /* Board extended module Drivers */