修改好WiFi针脚等,正确创建块设备

This commit is contained in:
james 2024-07-30 20:36:09 +08:00
parent aa119aae53
commit 28e312c629
3 changed files with 38 additions and 4 deletions

27
.config
View File

@ -44,7 +44,7 @@ CONFIG_RT_USING_DEBUG=y
CONFIG_RT_DEBUGING_ASSERT=y
CONFIG_RT_DEBUGING_COLOR=y
CONFIG_RT_DEBUGING_CONTEXT=y
# CONFIG_RT_DEBUGING_AUTO_INIT is not set
CONFIG_RT_DEBUGING_AUTO_INIT=y
CONFIG_RT_USING_OVERFLOW_CHECK=y
#
@ -505,7 +505,28 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_WLAN_WICED is not set
# end of Wiced WiFi
# CONFIG_PKG_USING_RW007 is not set
CONFIG_PKG_USING_RW007=y
CONFIG_PKG_RW007_PATH="/packages/iot/WiFi/rw007"
CONFIG_PKG_USING_RW007_V210=y
# CONFIG_PKG_USING_RW007_V201 is not set
# CONFIG_PKG_USING_RW007_V200 is not set
# CONFIG_PKG_USING_RW007_V111 is not set
# CONFIG_PKG_USING_RW007_V110 is not set
# CONFIG_PKG_USING_RW007_V100 is not set
# CONFIG_PKG_USING_RW007_LATEST_VERSION is not set
CONFIG_PKG_RW007_VER="v2.1.0"
# CONFIG_RW007_NOT_USE_EXAMPLE_DRIVERS is not set
CONFIG_RW007_USING_STM32_DRIVERS=y
# CONFIG_RW007_USING_BLE is not set
# CONFIG_RW007_USING_POWERSWITCH_EXAMPLE is not set
# CONFIG_RW007_USING_SPI_TEST is not set
CONFIG_RW007_SPI_MAX_HZ=30000000
CONFIG_RW007_SPI_BUS_NAME="spi2"
CONFIG_RW007_CS_PIN=90
CONFIG_RW007_BOOT0_PIN=29
CONFIG_RW007_BOOT1_PIN=90
CONFIG_RW007_INT_BUSY_PIN=107
CONFIG_RW007_RST_PIN=111
#
# CYW43012 WiFi
@ -1537,7 +1558,7 @@ CONFIG_BSP_USING_FLASH_FS_AUTO_MOUNT=y
CONFIG_BSP_USING_FAL=y
# CONFIG_BSP_USING_BOOTLOADER is not set
# CONFIG_BSP_USING_EASYFLASH is not set
# CONFIG_BSP_USING_RW007_WLAN is not set
CONFIG_BSP_USING_RW007_WLAN=y
CONFIG_BSP_USING_AHT21=y
# CONFIG_BSP_USING_AP3216C is not set
# CONFIG_BSP_USING_ICM20608 is not set

View File

@ -55,7 +55,8 @@ static int onboard_fal_mount(void)
extern struct rt_device *fal_blk_device_create(const char *parition_name);
fal_init();
/* 在 spi flash 中名为 "filesystem" 的分区上创建一个块设备 */
struct rt_device *flash_dev = fal_blk_device_create("font");
struct rt_device *flash_dev = fal_blk_device_create(FS_PARTITION_NAME);
fal_blk_device_create("font");
if (flash_dev == NULL)
{
LOG_E("Can't create a block device on '%s' partition.", FS_PARTITION_NAME);

View File

@ -29,6 +29,7 @@
#define RT_DEBUGING_ASSERT
#define RT_DEBUGING_COLOR
#define RT_DEBUGING_CONTEXT
#define RT_DEBUGING_AUTO_INIT
#define RT_USING_OVERFLOW_CHECK
/* Inter-Thread communication */
@ -302,6 +303,16 @@
/* Wiced WiFi */
/* end of Wiced WiFi */
#define PKG_USING_RW007
#define PKG_USING_RW007_V210
#define RW007_USING_STM32_DRIVERS
#define RW007_SPI_MAX_HZ 30000000
#define RW007_SPI_BUS_NAME "spi2"
#define RW007_CS_PIN 90
#define RW007_BOOT0_PIN 29
#define RW007_BOOT1_PIN 90
#define RW007_INT_BUSY_PIN 107
#define RW007_RST_PIN 111
/* CYW43012 WiFi */
@ -555,6 +566,7 @@
#define BSP_USING_FLASH_FATFS
#define BSP_USING_FLASH_FS_AUTO_MOUNT
#define BSP_USING_FAL
#define BSP_USING_RW007_WLAN
#define BSP_USING_AHT21
/* end of Onboard Peripheral Drivers */