From 8691ed376758361aa7c4f9cb8ab768a56ce19df7 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 31 Mar 2024 15:01:55 -0400 Subject: [PATCH] [pico][ci] add RTduino libraries check --- .github/workflows/bsp_buildings.yml | 7 +- .../.ci/attachconfig/c-posix.attach | 2 + .../attachconfig/rtduino/communication.attach | 4 + .../rtduino/dataprocessing.attach | 6 + .../attachconfig/rtduino/devicecontrol.attach | 9 ++ .../.ci/attachconfig/rtduino/display.attach | 10 ++ .../.ci/attachconfig/rtduino/other.attach | 4 + .../.ci/attachconfig/rtduino/projects.attach | 5 + .../attachconfig/{ => rtduino}/rtduino.attach | 0 .../rtduino/sensors-adafruit.attach | 105 ++++++++++++++++++ .../rtduino/sensors-others.attach | 4 + .../attachconfig/rtduino/sensors-seeed.attach | 35 ++++++ .../.ci/attachconfig/rtduino/signalio.attach | 11 ++ .../.ci/attachconfig/rtduino/timing.attach | 6 + 14 files changed, 206 insertions(+), 2 deletions(-) create mode 100644 bsp/raspberry-pico/.ci/attachconfig/c-posix.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/communication.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/dataprocessing.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/devicecontrol.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/display.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/other.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/projects.attach rename bsp/raspberry-pico/.ci/attachconfig/{ => rtduino}/rtduino.attach (100%) create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-adafruit.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-others.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-seeed.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/signalio.attach create mode 100644 bsp/raspberry-pico/.ci/attachconfig/rtduino/timing.attach diff --git a/.github/workflows/bsp_buildings.yml b/.github/workflows/bsp_buildings.yml index 3bdc0c7650..f5bffca5a2 100644 --- a/.github/workflows/bsp_buildings.yml +++ b/.github/workflows/bsp_buildings.yml @@ -37,14 +37,17 @@ jobs: fail-fast: false matrix: legs: - - RTT_BSP: "RT-Thread Online Packages" + - RTT_BSP: "RT-Thread Online Packages (STM32F407 RT-Spark)" RTT_TOOL_CHAIN: "sourcery-arm" SUB_RTT_BSP: - "stm32/stm32f407-rt-spark" - - RTT_BSP: "RTduino/Arduino Libraries" + - RTT_BSP: "RTduino/Arduino Libraries (STM32F412 Nucleo)" RTT_TOOL_CHAIN: "sourcery-arm" SUB_RTT_BSP: - "stm32/stm32f412-st-nucleo" + - RTT_BSP: "RTduino/Arduino Libraries (Raspberry Pico)" + RTT_TOOL_CHAIN: "sourcery-arm" + SUB_RTT_BSP: - "raspberry-pico" - RTT_BSP: "others_at32_hc32" RTT_TOOL_CHAIN: "sourcery-arm" diff --git a/bsp/raspberry-pico/.ci/attachconfig/c-posix.attach b/bsp/raspberry-pico/.ci/attachconfig/c-posix.attach new file mode 100644 index 0000000000..95008fa70b --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/c-posix.attach @@ -0,0 +1,2 @@ +# scons: --strict +CONFIG_RT_USING_CPLUSPLUS=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/communication.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/communication.attach new file mode 100644 index 0000000000..61a3b7e317 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/communication.attach @@ -0,0 +1,4 @@ +CONFIG_BSP_USING_ARDUINO=y + +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_PN532=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SI4713=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/dataprocessing.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/dataprocessing.attach new file mode 100644 index 0000000000..d833d95631 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/dataprocessing.attach @@ -0,0 +1,6 @@ +CONFIG_BSP_USING_ARDUINO=y + +CONFIG_PKG_USING_ARDUINO_ARDUINOJSON=y +CONFIG_PKG_USING_ARDUINO_KALMANFILTER=y +CONFIG_PKG_USING_ARDUINO_TENSORFLOW_LITE_MICRO=y +CONFIG_PKG_USING_ARDUINO_TENSORFLOW_LITE_MICRO_EXAMPLE_HELLO_WORLD=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/devicecontrol.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/devicecontrol.attach new file mode 100644 index 0000000000..b816e5bf55 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/devicecontrol.attach @@ -0,0 +1,9 @@ +CONFIG_BSP_USING_ARDUINO=y + +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_PCF8574=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_PCA9685=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TPA2016=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_DRV2605=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_DS1841=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_DS3502=y +CONFIG_PKG_USING_ARDUINO_SEEED_PCF85063TP=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/display.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/display.attach new file mode 100644 index 0000000000..8019bd9c28 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/display.attach @@ -0,0 +1,10 @@ +CONFIG_BSP_USING_ARDUINO=y + +# Adafruit Drivers +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_GFX_LIBRARY=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ILI9341=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SSD1306=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ST7735=y + +# u8g2 +CONFIG_PKG_USING_ARDUINO_U8G2=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/other.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/other.attach new file mode 100644 index 0000000000..b731b70a8b --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/other.attach @@ -0,0 +1,4 @@ +CONFIG_BSP_USING_ARDUINO=y + +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MFRC630=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SI5351=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/projects.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/projects.attach new file mode 100644 index 0000000000..48c9c4f1a1 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/projects.attach @@ -0,0 +1,5 @@ +CONFIG_BSP_USING_ARDUINO=y +CONFIG_PKG_USING_ARDUINO_SENSOR_KIT=y +CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR=y +CONFIG_PKG_USING_ARDUINO_MSGQ_C_CPP_DEMO=y +CONFIG_PKG_USING_ARDUINO_NINEINONE_SENSOR_SHIELD=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/rtduino.attach similarity index 100% rename from bsp/raspberry-pico/.ci/attachconfig/rtduino.attach rename to bsp/raspberry-pico/.ci/attachconfig/rtduino/rtduino.attach diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-adafruit.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-adafruit.attach new file mode 100644 index 0000000000..b5002c4246 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-adafruit.attach @@ -0,0 +1,105 @@ +CONFIG_BSP_USING_ARDUINO=y + +# Adafruit Sensor Libraries Check +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SENSOR=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SENSORLAB=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ADXL375=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VL53L0X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VL53L1X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VL6180X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX31855=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX31865=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX31856=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX6675=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MLX90614=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LSM9DS1=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AHTX0=y +CONFIG_ARDUINO_ADAFRUIT_AHTX0_USING_SENSOR_DEVICE=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LSM9DS0=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BMP280=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ADT7410=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BMP085=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BME680=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MCP9808=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MCP4728=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_INA219=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LTR390=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ADXL345=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_DHT=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MCP9600=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LSM6DS=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BNO055=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MAX1704X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MMC56X3=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MLX90393=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MLX90395=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ICM20X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_DPS310=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_HTS221=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SHT4X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SHT31=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ADXL343=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BME280=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AS726X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AMG88XX=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AM2320=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AM2315=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LTR329_LTR303=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BMP085_UNIFIED=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BMP183=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BMP183_UNIFIED=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BMP3XX=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MS8607=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LIS3MDL=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MLX90640=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MMA8451=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MSA301=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MPL115A2=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BNO08X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BNO08X_RVC=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LIS2MDL=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LSM303DLH_MAG=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LC709203F=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_CAP1188=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_CCS811=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_NAU7802=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LIS331=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LPS2X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LPS35HW=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LSM303_ACCEL=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_LIS3DH=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_PCF8591=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MPL3115A2=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MPR121=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MPRLS=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MPU6050=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_PCT2075=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_PM25AQI=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_EMC2101=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_FXAS21002C=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SCD30=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_FXOS8700=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_HMC5883_UNIFIED=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SGP30=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TMP006=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TLA202X=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TCS34725=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SI7021=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SI1145=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SGP40=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SHTC3=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_HDC1000=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_HTU21DF=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AS7341=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_HTU31D=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_INA260=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TMP007_LIBRARY=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_L3GD20=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TMP117=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TSC2007=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TSL2561=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TSL2591_LIBRARY=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VCNL4040=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VEML6070=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VEML6075=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_VEML7700=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-others.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-others.attach new file mode 100644 index 0000000000..716dbcf068 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-others.attach @@ -0,0 +1,4 @@ +CONFIG_BSP_USING_ARDUINO=y + +# Other Sensors +CONFIG_PKG_USING_ARDUINO_CAPACITIVESENSOR=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-seeed.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-seeed.attach new file mode 100644 index 0000000000..753062eccc --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/sensors-seeed.attach @@ -0,0 +1,35 @@ +CONFIG_BSP_USING_ARDUINO=y + +# Seeed Sensors +CONFIG_PKG_USING_ARDUINO_SEEED_LIS3DHTR=y +CONFIG_PKG_USING_ARDUINO_SEEED_DHT=y +CONFIG_PKG_USING_ARDUINO_SEEED_ADXL335=y +CONFIG_PKG_USING_ARDUINO_SEEED_ADXL345=y +CONFIG_PKG_USING_ARDUINO_SEEED_BME280=y +CONFIG_PKG_USING_ARDUINO_SEEED_BMP280=y +CONFIG_PKG_USING_ARDUINO_SEEED_H3LIS331DL=y +CONFIG_PKG_USING_ARDUINO_SEEED_MMA7660=y +CONFIG_PKG_USING_ARDUINO_SEEED_TSL2561=y +CONFIG_PKG_USING_ARDUINO_SEEED_PAJ7620=y +#CONFIG_PKG_USING_ARDUINO_SEEED_VL53L0X=y +#CONFIG_PKG_USING_ARDUINO_SEEED_ITG3200=y +CONFIG_PKG_USING_ARDUINO_SEEED_SHT31=y +CONFIG_PKG_USING_ARDUINO_SEEED_HP20X=y +#CONFIG_PKG_USING_ARDUINO_SEEED_DRV2605L=y +CONFIG_PKG_USING_ARDUINO_SEEED_BBM150=y +#CONFIG_PKG_USING_ARDUINO_SEEED_HMC5883L=y +CONFIG_PKG_USING_ARDUINO_SEEED_LSM303DLH=y +CONFIG_PKG_USING_ARDUINO_SEEED_TCS3414CS=y +CONFIG_PKG_USING_ARDUINO_SEEED_MP503=y +CONFIG_PKG_USING_ARDUINO_SEEED_BMP085=y +CONFIG_PKG_USING_ARDUINO_SEEED_HIGHTEMP=y +CONFIG_PKG_USING_ARDUINO_SEEED_VEML6070=y +CONFIG_PKG_USING_ARDUINO_SEEED_SI1145=y +CONFIG_PKG_USING_ARDUINO_SEEED_SHT35=y +CONFIG_PKG_USING_ARDUINO_SEEED_AT42QT1070=y +CONFIG_PKG_USING_ARDUINO_SEEED_LSM6DS3=y +CONFIG_PKG_USING_ARDUINO_SEEED_HDC1000=y +CONFIG_PKG_USING_ARDUINO_SEEED_HM3301=y +CONFIG_PKG_USING_ARDUINO_SEEED_MCP9600=y +CONFIG_PKG_USING_ARDUINO_SEEED_LTC2941=y +CONFIG_PKG_USING_ARDUINO_SEEED_LDC1612=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/signalio.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/signalio.attach new file mode 100644 index 0000000000..035acf7527 --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/signalio.attach @@ -0,0 +1,11 @@ +CONFIG_BSP_USING_ARDUINO=y + +# Adafruit Signal IO Drivers +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BUSIO=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_TCA8418=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MCP23017=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ADS1X15=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_AW9523=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MCP3008=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_MCP4725=y +CONFIG_PKG_USING_ARDUINO_ADAFRUIT_BD3491FS=y diff --git a/bsp/raspberry-pico/.ci/attachconfig/rtduino/timing.attach b/bsp/raspberry-pico/.ci/attachconfig/rtduino/timing.attach new file mode 100644 index 0000000000..d7698dad7c --- /dev/null +++ b/bsp/raspberry-pico/.ci/attachconfig/rtduino/timing.attach @@ -0,0 +1,6 @@ +CONFIG_BSP_USING_ARDUINO=y + +CONFIG_PKG_USING_ARDUINO_RTCLIB=y +CONFIG_PKG_USING_ARDUINO_MSTIMER2=y +#CONFIG_PKG_USING_ARDUINO_TICKER=y +CONFIG_PKG_USING_ARDUINO_TASKSCHEDULER=y