|
|
@@ -108,6 +108,10 @@ hm_chipset_t* hm_chipset_get_instance(void)
|
|
|
|
|
|
#ifdef HM_USING_BOARD_ART_PI
|
|
|
|
|
|
+#include <spi_flash.h>
|
|
|
+#include <drv_spi.h>
|
|
|
+#include <fal.h>
|
|
|
+
|
|
|
#define BT_FIRMWARE_PARTITION_NAME "bt_image"
|
|
|
static int bt_firmware_create(void)
|
|
|
{
|
|
|
@@ -134,12 +138,9 @@ static int bt_firmware_create(void)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#include <spi_flash.h>
|
|
|
-#include <drv_spi.h>
|
|
|
static int rt_flash_init(void)
|
|
|
{
|
|
|
extern rt_spi_flash_device_t rt_sfud_flash_probe(const char *spi_flash_dev_name, const char *spi_dev_name);
|
|
|
- extern int fal_init(void);
|
|
|
|
|
|
rt_hw_spi_device_attach("spi1", "spi10", GPIOA, GPIO_PIN_4);
|
|
|
|