diff --git a/.github/workflows/bsp_buildings.yml b/.github/workflows/bsp_buildings.yml index fcdcff93b5..8ed79ff66b 100644 --- a/.github/workflows/bsp_buildings.yml +++ b/.github/workflows/bsp_buildings.yml @@ -125,6 +125,7 @@ jobs: - "stm32/stm32f407-atk-explorer" - "stm32/stm32f407-robomaster-c" - "stm32/stm32f407-st-discovery" + - "stm32/stm32f407-rt-spark" - "stm32/stm32f410-st-nucleo" - "stm32/stm32f411-atk-nano" - "stm32/stm32f411-st-nucleo" diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/aht21.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/aht21.attach new file mode 100644 index 0000000000..e9269471b5 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/aht21.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_AHT21=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/ap3216c.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/ap3216c.attach new file mode 100644 index 0000000000..b8da5bcfb3 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/ap3216c.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_AP3216C=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/ethernet_28j60.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/ethernet_28j60.attach new file mode 100644 index 0000000000..085b183d92 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/ethernet_28j60.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_ENC28j60=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/fal_easyflash.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/fal_easyflash.attach new file mode 100644 index 0000000000..70aac6f974 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/fal_easyflash.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_EASYFLASH=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/filesystem.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/filesystem.attach new file mode 100644 index 0000000000..72c479e8d0 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/filesystem.attach @@ -0,0 +1,2 @@ +CONFIG_BSP_USING_FS=y +CONFIG_BSP_USING_FLASH_FATFS=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/icm20608.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/icm20608.attach new file mode 100644 index 0000000000..922671ca35 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/icm20608.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_ICM20608=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/lcd_st7787.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/lcd_st7787.attach new file mode 100644 index 0000000000..c4044805ae --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/lcd_st7787.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_ONBOARD_LCD=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/led_matrix.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/led_matrix.attach new file mode 100644 index 0000000000..7c18402022 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/led_matrix.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_ONBOARD_LED_MATRIX=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/lvgl.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/lvgl.attach new file mode 100644 index 0000000000..1ce3e528aa --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/lvgl.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_LVGL=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/rs485.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/rs485.attach new file mode 100644 index 0000000000..144fb35d85 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/rs485.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_RS485=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/rw007.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/rw007.attach new file mode 100644 index 0000000000..be96228ae1 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/rw007.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_RW007_WLAN=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/spi_flash_w25q64.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/spi_flash_w25q64.attach new file mode 100644 index 0000000000..a2a4b41993 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/spi_flash_w25q64.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_SPI_FLASH=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/sram.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/sram.attach new file mode 100644 index 0000000000..516182d2b5 --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/sram.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_SRAM=y diff --git a/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/usb_mouse.attach b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/usb_mouse.attach new file mode 100644 index 0000000000..ad9c397d8b --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/usb_mouse.attach @@ -0,0 +1 @@ +CONFIG_BSP_USING_USB_MOUSE=y diff --git a/bsp/stm32/stm32f407-rt-spark/board/Kconfig b/bsp/stm32/stm32f407-rt-spark/board/Kconfig index 94a62539a8..ec6bc18c2e 100644 --- a/bsp/stm32/stm32f407-rt-spark/board/Kconfig +++ b/bsp/stm32/stm32f407-rt-spark/board/Kconfig @@ -91,6 +91,7 @@ menu "Onboard Peripheral Drivers" if BSP_USING_LVGL config BSP_USING_LVGL_DEMO bool "Enable LVGL demo" + select PKG_LVGL_USING_DEMOS default y endif @@ -150,6 +151,7 @@ menu "Onboard Peripheral Drivers" select FAL_DEBUG_CONFIG select FAL_PART_HAS_TABLE_CFG select FAL_USING_SFUD_PORT + select BSP_USING_ON_CHIP_FLASH if BSP_USING_FAL menuconfig BSP_USING_BOOTLOADER @@ -222,12 +224,6 @@ menu "Onboard Peripheral Drivers" select RT_USB_DEVICE_HID_MOUSE select BSP_USING_ICM20608 - config BSP_USING_EASYFLASH - bool "Enable Easy Flash base on FAL" - select BSP_USING_FAL - select PKG_USING_EASYFLASH - default n - menuconfig BSP_USING_CAN bool "Enable On Board CAN" select RT_USING_CAN diff --git a/bsp/stm32/stm32f407-rt-spark/board/ports/drv_enc28j60.c b/bsp/stm32/stm32f407-rt-spark/board/ports/drv_enc28j60.c index 819ae9f7ce..7afca5b175 100644 --- a/bsp/stm32/stm32f407-rt-spark/board/ports/drv_enc28j60.c +++ b/bsp/stm32/stm32f407-rt-spark/board/ports/drv_enc28j60.c @@ -14,12 +14,12 @@ #include "board.h" #define PIN_NRF_IRQ GET_PIN(E,2) - +#define PIN_SPI_CS GET_PIN(A,4) int enc28j60_init(void) { __HAL_RCC_GPIOD_CLK_ENABLE(); - rt_hw_spi_device_attach("spi1", "spi11", GPIOA, GPIO_PIN_4); + rt_hw_spi_device_attach("spi1", "spi11", PIN_SPI_CS); /* attach enc28j60 to spi. spi11 cs - PA4 */ enc28j60_attach("spi11"); diff --git a/bsp/stm32/stm32f407-rt-spark/board/ports/led_matrix/drv_matrix_led.c b/bsp/stm32/stm32f407-rt-spark/board/ports/led_matrix/drv_matrix_led.c index 8b0541db17..f95bc2f293 100644 --- a/bsp/stm32/stm32f407-rt-spark/board/ports/led_matrix/drv_matrix_led.c +++ b/bsp/stm32/stm32f407-rt-spark/board/ports/led_matrix/drv_matrix_led.c @@ -32,7 +32,7 @@ TIM_HandleTypeDef htim3; DMA_HandleTypeDef hdma_tim3_ch2; -ALIGN(4) +rt_align(4) uint8_t led_buffer[LED_NUM * 24 * 2]; extern void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);