summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthread-liu <[email protected]>2021-03-01 15:56:52 +0800
committerthread-liu <[email protected]>2021-03-01 15:57:10 +0800
commit53dea16e5c6876cc3d133260efb12ebd4b670085 (patch)
tree6cd3c5680deca4b3300b9fd228fa20a6c32a44ef
parent0a54f4c3dd4068589ad9e1e92e780b91d9b974ca (diff)
[update] sdio wifi.
-rw-r--r--bsp/stm32/libraries/STM32MPxx_HAL/SConscript4
-rw-r--r--bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Inc/stm32mp1xx_hal_conf.h2
-rw-r--r--bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Src/stm32mp1xx_hal_msp.c118
-rw-r--r--bsp/stm32/stm32mp157a-st-discovery/board/Kconfig15
-rw-r--r--bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.c110
-rw-r--r--bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h12
-rw-r--r--bsp/stm32/stm32mp157a-st-discovery/project.ewp170
7 files changed, 385 insertions, 46 deletions
diff --git a/bsp/stm32/libraries/STM32MPxx_HAL/SConscript b/bsp/stm32/libraries/STM32MPxx_HAL/SConscript
index a991e588d0..ce482829bd 100644
--- a/bsp/stm32/libraries/STM32MPxx_HAL/SConscript
+++ b/bsp/stm32/libraries/STM32MPxx_HAL/SConscript
@@ -119,6 +119,10 @@ if GetDepend(['BSP_USING_CRYP']):
src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_cryp.c']
src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_cryp_ex.c']
+if GetDepend(['BSP_USING_RTC']):
+ src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_rtc.c']
+ src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_rtc_ex.c']
+
path = [cwd + '/STM32MP1xx_HAL_Driver/Inc',
cwd + '/CMSIS/Device/ST/STM32MP1xx/Include',
cwd + '/CMSIS/Core/Include',
diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Inc/stm32mp1xx_hal_conf.h b/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Inc/stm32mp1xx_hal_conf.h
index 3ba077b0b5..b7fd4ce81f 100644
--- a/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Inc/stm32mp1xx_hal_conf.h
+++ b/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Inc/stm32mp1xx_hal_conf.h
@@ -60,7 +60,7 @@
#define HAL_SAI_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED
/*#define HAL_MMC_MODULE_ENABLED */
-/*#define HAL_RTC_MODULE_ENABLED */
+#define HAL_RTC_MODULE_ENABLED
/*#define HAL_SMBUS_MODULE_ENABLED */
/*#define HAL_SPDIFRX_MODULE_ENABLED */
#define HAL_SPI_MODULE_ENABLED
diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Src/stm32mp1xx_hal_msp.c b/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Src/stm32mp1xx_hal_msp.c
index 3a6fac25d7..5ca08fbbd0 100644
--- a/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Src/stm32mp1xx_hal_msp.c
+++ b/bsp/stm32/stm32mp157a-st-discovery/board/CubeMX_Config/CM4/Src/stm32mp1xx_hal_msp.c
@@ -1003,7 +1003,66 @@ void HAL_SD_MspInit(SD_HandleTypeDef* hsd)
/* USER CODE END SDMMC1_MspInit 1 */
}
+ if(hsd->Instance==SDMMC2)
+ {
+ /* USER CODE BEGIN SDMMC2_MspInit 0 */
+ if (IS_ENGINEERING_BOOT_MODE())
+ {
+ /** Initializes the peripherals clock
+ */
+ PeriphClkInit.Sdmmc12ClockSelection = RCC_SDMMC12CLKSOURCE_PLL4;
+ PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_SDMMC12;
+ if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
+ {
+ Error_Handler();
+ }
+ }
+ /* USER CODE END SDMMC2_MspInit 0 */
+ /* Peripheral clock enable */
+ __HAL_RCC_SDMMC2_CLK_ENABLE();
+
+ __HAL_RCC_GPIOB_CLK_ENABLE();
+ __HAL_RCC_GPIOE_CLK_ENABLE();
+ __HAL_RCC_GPIOG_CLK_ENABLE();
+ /**SDMMC2 GPIO Configuration
+ PB14 ------> SDMMC2_D0
+ PB15 ------> SDMMC2_D1
+ PB3 ------> SDMMC2_D2
+ PB4 ------> SDMMC2_D3
+ PE3 ------> SDMMC2_CK
+ PG6 ------> SDMMC2_CMD
+ */
+ GPIO_InitStruct.Pin = GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_14|GPIO_PIN_15;
+ GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
+ GPIO_InitStruct.Alternate = GPIO_AF9_SDIO2;
+ HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
+
+ GPIO_InitStruct.Pin = GPIO_PIN_3;
+ GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
+ GPIO_InitStruct.Alternate = GPIO_AF9_SDIO2;
+ HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
+
+ GPIO_InitStruct.Pin = GPIO_PIN_6;
+ GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
+ GPIO_InitStruct.Pull = GPIO_NOPULL;
+ GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
+ GPIO_InitStruct.Alternate = GPIO_AF10_SDIO2;
+ HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
+ __HAL_RCC_SDMMC2_FORCE_RESET();
+ __HAL_RCC_SDMMC2_RELEASE_RESET();
+
+ /* SDMMC2 interrupt Init */
+ HAL_NVIC_SetPriority(SDMMC2_IRQn, 2, 0);
+ HAL_NVIC_EnableIRQ(SDMMC2_IRQn);
+ /* USER CODE BEGIN SDMMC2_MspInit 1 */
+
+ /* USER CODE END SDMMC2_MspInit 1 */
+ }
}
/**
@@ -1312,6 +1371,65 @@ void HAL_CRYP_MspDeInit(CRYP_HandleTypeDef* hcryp)
}
#endif
+
+/**
+* @brief RTC MSP Initialization
+* This function configures the hardware resources used in this example
+* @param hrtc: RTC handle pointer
+* @retval None
+*/
+void HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc)
+{
+ RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
+ if(hrtc->Instance==RTC)
+ {
+ /* USER CODE BEGIN SDMMC1_MspInit 0 */
+ if (IS_ENGINEERING_BOOT_MODE())
+ {
+ /** Initializes the peripherals clock
+ */
+ PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE;
+ PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_RTC;
+ if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
+ {
+ Error_Handler();
+ }
+ }
+ /* USER CODE BEGIN RTC_MspInit 0 */
+
+ /* USER CODE END RTC_MspInit 0 */
+ /* Peripheral clock enable */
+ __HAL_RCC_RTC_ENABLE();
+
+ /* USER CODE BEGIN RTC_MspInit 1 */
+
+ /* USER CODE END RTC_MspInit 1 */
+ }
+
+}
+
+/**
+* @brief RTC MSP De-Initialization
+* This function freeze the hardware resources used in this example
+* @param hrtc: RTC handle pointer
+* @retval None
+*/
+void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc)
+{
+ if(hrtc->Instance==RTC)
+ {
+ /* USER CODE BEGIN RTC_MspDeInit 0 */
+
+ /* USER CODE END RTC_MspDeInit 0 */
+ /* Peripheral clock disable */
+ __HAL_RCC_RTC_DISABLE();
+
+ /* USER CODE BEGIN RTC_MspDeInit 1 */
+
+ /* USER CODE END RTC_MspDeInit 1 */
+ }
+
+}
/**
* @brief This function is executed in case of error occurrence.
* @retval None
diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig b/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig
index 9191443847..36ba61a584 100644
--- a/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig
+++ b/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig
@@ -58,10 +58,23 @@ menu "Onboard Peripheral Drivers"
select RT_USING_LWIP
config BSP_USING_SDMMC
- bool "Enable SDMMC (SD card)"
+ bool "Enable SDMMC (sd card or sdio wifi)"
+ default n
select RT_USING_SDIO
select RT_USING_DFS
select RT_USING_DFS_ELMFAT
+ if BSP_USING_SDMMC
+ config BSP_USING_SDIO1
+ bool "Enable SDIO1 (sd card)"
+ default n
+ config BSP_USING_SDIO2
+ select BSP_USING_RTC
+ bool "Enable SDIO2 (sdio wifi)"
+ default n
+ endif
+
+ config BSP_USING_RTC
+ bool "Enable RTC"
default n
menuconfig BSP_USING_AUDIO
diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.c b/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.c
index 3e5085c3cd..45de04328f 100644
--- a/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.c
+++ b/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.c
@@ -10,11 +10,17 @@
#include "board.h"
#include "drv_sdio.h"
+
+#ifdef BSP_USING_SDIO1
#include <dfs_fs.h>
+#endif
#ifdef BSP_USING_SDMMC
-//#define DRV_DEBUG
+#ifdef BSP_USING_SDIO2
+#define DRV_DEBUG
+#endif
+
#define DBG_TAG "drv.sdio"
#ifdef DRV_DEBUG
#define DBG_LVL DBG_LOG
@@ -23,8 +29,9 @@
#endif /* DRV_DEBUG */
#include <rtdbg.h>
-static SD_HandleTypeDef hsd;
-static struct rt_mmcsd_host *host;
+static struct rt_mmcsd_host *host1;
+static struct rt_mmcsd_host *host2;
+
#define SDIO_TX_RX_COMPLETE_TIMEOUT_LOOPS (100000)
#define RTHW_SDIO_LOCK(_sdio) rt_mutex_take(&_sdio->mutex, RT_WAITING_FOREVER)
@@ -47,13 +54,14 @@ struct rthw_sdio
};
/* SYSRAM SDMMC1/2 accesses */
+#define SDCARD_ADDR 0x2FFC0000
#if defined(__CC_ARM) || defined(__CLANG_ARM)
-rt_uint8_t cache_buf[SDIO_BUFF_SIZE] __attribute__((at(0x2FFC0000)));
+__attribute__((at(SDCARD_ADDR))) static rt_uint8_t cache_buf[SDIO_BUFF_SIZE];
+#elif defined ( __GNUC__ )
+static rt_uint8_t cache_buf[SDIO_BUFF_SIZE] __attribute__((section(".SdCardSection")));
#elif defined(__ICCARM__)
-#pragma location=0x2FFC0000
-rt_uint8_t cache_buf[SDIO_BUFF_SIZE];
-#elif defined(__GNUC__)
-rt_uint8_t cache_buf[SDIO_BUFF_SIZE] __attribute__((at(0x2FFC0000)));
+#pragma location = SDCARD_ADDR
+__no_init static rt_uint8_t cache_buf[SDIO_BUFF_SIZE];
#endif
/**
@@ -461,10 +469,20 @@ struct rt_mmcsd_host *sdio_host_create(struct stm32_sdio_des *sdio_des)
rt_memcpy(&sdio->sdio_des, sdio_des, sizeof(struct stm32_sdio_des));
- sdio->sdio_des.hw_sdio = (struct stm32_sdio *)SDIO_BASE_ADDRESS;
+ if(sdio_des->hsd.Instance == SDMMC1)
+ {
+ sdio->sdio_des.hw_sdio = (struct stm32_sdio *)SDIO1_BASE_ADDRESS;
+ rt_event_init(&sdio->event, "sdio1", RT_IPC_FLAG_FIFO);
+ rt_mutex_init(&sdio->mutex, "sdio1", RT_IPC_FLAG_FIFO);
+ }
+
+ if(sdio_des->hsd.Instance == SDMMC2)
+ {
+ sdio->sdio_des.hw_sdio = (struct stm32_sdio *)SDIO2_BASE_ADDRESS;
+ rt_event_init(&sdio->event, "sdio2", RT_IPC_FLAG_FIFO);
+ rt_mutex_init(&sdio->mutex, "sdio2", RT_IPC_FLAG_FIFO);
+ }
- rt_event_init(&sdio->event, "sdio", RT_IPC_FLAG_FIFO);
- rt_mutex_init(&sdio->mutex, "sdio", RT_IPC_FLAG_FIFO);
/* set host default attributes */
host->ops = &ops;
host->freq_min = 400 * 1000;
@@ -503,29 +521,83 @@ void SDMMC1_IRQHandler(void)
{
rt_interrupt_enter();
/* Process All SDIO Interrupt Sources */
- rthw_sdio_irq_process(host);
+ rthw_sdio_irq_process(host1);
rt_interrupt_leave();
}
+void SDMMC2_IRQHandler(void)
+{
+ /* enter interrupt */
+ rt_interrupt_enter();
+ /* Process All SDIO Interrupt Sources */
+ rthw_sdio_irq_process(host2);
+ /* leave interrupt */
+ rt_interrupt_leave();
+}
+
+#ifdef BSP_USING_SDIO2
+static RTC_HandleTypeDef hrtc;
+static void MX_RTC_Init(void)
+{
+ hrtc.Instance = RTC;
+ hrtc.Init.HourFormat = RTC_HOURFORMAT_24;
+ hrtc.Init.AsynchPrediv = 127;
+ hrtc.Init.SynchPrediv = 255;
+ hrtc.Init.OutPut = RTC_OUTPUT_DISABLE;
+ hrtc.Instance->CFGR = 0x02 << 1;
+ if (HAL_RTC_Init(&hrtc) != HAL_OK)
+ {
+ Error_Handler();
+ }
+}
+static int LBEE5KL1DX_init(void)
+{
+#define LBEE5KL1DX_WL_REG_ON GET_PIN(H, 4)
+
+ /* enable the WLAN REG pin */
+ rt_pin_mode(LBEE5KL1DX_WL_REG_ON, PIN_MODE_OUTPUT);
+ rt_pin_write(LBEE5KL1DX_WL_REG_ON, PIN_HIGH);
+
+ return 0;
+}
+#endif
+
int rt_hw_sdio_init(void)
{
- struct stm32_sdio_des sdio_des;
-
- hsd.Instance = SDMMC1;
- HAL_SD_MspInit(&hsd);
+#ifdef BSP_USING_SDIO1
+ struct stm32_sdio_des sdio_des1;
+ sdio_des1.hsd.Instance = SDMMC1;
+ HAL_SD_MspInit(&sdio_des1.hsd);
- host = sdio_host_create(&sdio_des);
- if (host == RT_NULL)
+ host1 = sdio_host_create(&sdio_des1);
+ if (host1 == RT_NULL)
{
LOG_E("host create fail");
return RT_NULL;
}
+#endif
+#ifdef BSP_USING_SDIO2
+ MX_RTC_Init();
+ LBEE5KL1DX_init();
+
+ struct stm32_sdio_des sdio_des2;
+ sdio_des2.hsd.Instance = SDMMC2;
+ HAL_SD_MspInit(&sdio_des2.hsd);
+
+ host2 = sdio_host_create(&sdio_des2);
+ if (host2 == RT_NULL)
+ {
+ LOG_E("host2 create fail");
+ return RT_NULL;
+ }
+#endif
return RT_EOK;
}
INIT_DEVICE_EXPORT(rt_hw_sdio_init);
+#ifdef BSP_USING_SDIO1
int mnt_init(void)
{
rt_device_t sd = RT_NULL;
@@ -552,4 +624,6 @@ int mnt_init(void)
}
INIT_ENV_EXPORT(mnt_init);
+#endif /* BSP_USING_SDIO1 */
+
#endif /* BSP_USING_SDMMC */
diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h b/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h
index a4428e4e71..da70bf1257 100644
--- a/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h
+++ b/bsp/stm32/stm32mp157a-st-discovery/board/ports/drv_sdio.h
@@ -19,11 +19,12 @@
#include <drivers/mmcsd_core.h>
#include <drivers/sdio.h>
-#define SDIO_BUFF_SIZE 4096
-#define SDIO_ALIGN_LEN 32
+#ifndef SDIO1_BASE_ADDRESS
+#define SDIO1_BASE_ADDRESS (SDMMC1)
+#endif
-#ifndef SDIO_BASE_ADDRESS
-#define SDIO_BASE_ADDRESS (SDMMC1)
+#ifndef SDIO2_BASE_ADDRESS
+#define SDIO2_BASE_ADDRESS (SDMMC2)
#endif
#ifndef SDIO_CLOCK_FREQ
@@ -39,7 +40,7 @@
#endif
#ifndef SDIO_MAX_FREQ
-#define SDIO_MAX_FREQ (50 * 1000 * 1000)
+#define SDIO_MAX_FREQ (25 * 1000 * 1000)
#endif
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
@@ -102,6 +103,7 @@ struct stm32_sdio_des
{
struct stm32_sdio *hw_sdio;
sdio_clk_get clk_get;
+ SD_HandleTypeDef hsd;
};
/* stm32 sdio dirver class */
diff --git a/bsp/stm32/stm32mp157a-st-discovery/project.ewp b/bsp/stm32/stm32mp157a-st-discovery/project.ewp
index 3547891da5..3f12a28dbe 100644
--- a/bsp/stm32/stm32mp157a-st-discovery/project.ewp
+++ b/bsp/stm32/stm32mp157a-st-discovery/project.ewp
@@ -232,6 +232,8 @@
<state>STM32MP157Axx</state>
<state>__LOG_TRACE_IO_</state>
<state>__RTTHREAD__</state>
+ <state>RT_USING_DLIBC</state>
+ <state>_DLIB_FILE_DESCRIPTOR</state>
<state>USE_HAL_DRIVER</state>
</option>
<option>
@@ -358,23 +360,28 @@
<option>
<name>CCIncludePath2</name>
<state />
+ <state>$PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs</state>
<state>$PROJ_DIR$\..\..\..\components\finsh</state>
- <state>$PROJ_DIR$\..\..\..\libcpu\arm\common</state>
- <state>$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4</state>
- <state>$PROJ_DIR$\board\CubeMX_Config\CM4\Inc</state>
- <state>$PROJ_DIR$\board\ports</state>
+ <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
<state>$PROJ_DIR$\..\..\..\components\drivers\include</state>
- <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc</state>
+ <state>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib</state>
+ <state>$PROJ_DIR$\board\ports\audio</state>
+ <state>$PROJ_DIR$\..\..\..\components\libc\compilers\common</state>
<state>$PROJ_DIR$\.</state>
- <state>$PROJ_DIR$\applications</state>
- <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
+ <state>$PROJ_DIR$\board\CubeMX_Config\CM4\Inc</state>
+ <state>$PROJ_DIR$\..\..\..\components\dfs\include</state>
<state>$PROJ_DIR$\..\libraries\HAL_Drivers\config</state>
<state>$PROJ_DIR$\board</state>
+ <state>$PROJ_DIR$\..\libraries\HAL_Drivers</state>
+ <state>$PROJ_DIR$\board\ports</state>
+ <state>$PROJ_DIR$\applications</state>
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Include</state>
- <state>$PROJ_DIR$\board\ports\audio</state>
+ <state>$PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat</state>
<state>$PROJ_DIR$\..\..\..\include</state>
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Include</state>
- <state>$PROJ_DIR$\..\libraries\HAL_Drivers</state>
+ <state>$PROJ_DIR$\..\..\..\libcpu\arm\common</state>
+ <state>$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4</state>
+ <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc</state>
</option>
<option>
<name>CCStdIncCheck</name>
@@ -1309,6 +1316,8 @@
<state>STM32MP157Axx</state>
<state>__LOG_TRACE_IO_</state>
<state>__RTTHREAD__</state>
+ <state>RT_USING_DLIBC</state>
+ <state>_DLIB_FILE_DESCRIPTOR</state>
<state>USE_HAL_DRIVER</state>
</option>
<option>
@@ -1435,23 +1444,28 @@
<option>
<name>CCIncludePath2</name>
<state />
+ <state>$PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs</state>
<state>$PROJ_DIR$\..\..\..\components\finsh</state>
- <state>$PROJ_DIR$\..\..\..\libcpu\arm\common</state>
- <state>$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4</state>
- <state>$PROJ_DIR$\board\CubeMX_Config\CM4\Inc</state>
- <state>$PROJ_DIR$\board\ports</state>
+ <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
<state>$PROJ_DIR$\..\..\..\components\drivers\include</state>
- <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc</state>
+ <state>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib</state>
+ <state>$PROJ_DIR$\board\ports\audio</state>
+ <state>$PROJ_DIR$\..\..\..\components\libc\compilers\common</state>
<state>$PROJ_DIR$\.</state>
- <state>$PROJ_DIR$\applications</state>
- <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
+ <state>$PROJ_DIR$\board\CubeMX_Config\CM4\Inc</state>
+ <state>$PROJ_DIR$\..\..\..\components\dfs\include</state>
<state>$PROJ_DIR$\..\libraries\HAL_Drivers\config</state>
<state>$PROJ_DIR$\board</state>
+ <state>$PROJ_DIR$\..\libraries\HAL_Drivers</state>
+ <state>$PROJ_DIR$\board\ports</state>
+ <state>$PROJ_DIR$\applications</state>
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Include</state>
- <state>$PROJ_DIR$\board\ports\audio</state>
+ <state>$PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat</state>
<state>$PROJ_DIR$\..\..\..\include</state>
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Include</state>
- <state>$PROJ_DIR$\..\libraries\HAL_Drivers</state>
+ <state>$PROJ_DIR$\..\..\..\libcpu\arm\common</state>
+ <state>$PROJ_DIR$\..\..\..\libcpu\arm\cortex-m4</state>
+ <state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc</state>
</option>
<option>
<name>CCStdIncCheck</name>
@@ -2184,6 +2198,21 @@
<name>$PROJ_DIR$\..\..\..\components\drivers\misc\pin.c</name>
</file>
<file>
+ <name>$PROJ_DIR$\..\..\..\components\drivers\sdio\block_dev.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\drivers\sdio\mmcsd_core.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\drivers\sdio\sd.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\drivers\sdio\sdio.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\drivers\sdio\mmc.c</name>
+ </file>
+ <file>
<name>$PROJ_DIR$\..\..\..\components\drivers\serial\serial.c</name>
</file>
<file>
@@ -2220,6 +2249,9 @@
<name>$PROJ_DIR$\board\CubeMX_Config\CM4\Src\stm32mp1xx_hal_msp.c</name>
</file>
<file>
+ <name>$PROJ_DIR$\board\ports\drv_sdio.c</name>
+ </file>
+ <file>
<name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\iar\startup_stm32mp15xx.s</name>
</file>
<file>
@@ -2233,6 +2265,39 @@
</file>
</group>
<group>
+ <name>Filesystem</name>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\src\dfs.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\src\dfs_file.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\src\dfs_fs.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\src\dfs_posix.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\src\poll.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\src\select.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs\devfs.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat\dfs_elm.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat\ff.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\dfs\filesystems\elmfat\ffunicode.c</name>
+ </file>
+ </group>
+ <group>
<name>finsh</name>
<file>
<name>$PROJ_DIR$\..\..\..\components\finsh\shell.c</name>
@@ -2244,6 +2309,9 @@
<name>$PROJ_DIR$\..\..\..\components\finsh\msh.c</name>
</file>
<file>
+ <name>$PROJ_DIR$\..\..\..\components\finsh\msh_file.c</name>
+ </file>
+ <file>
<name>$PROJ_DIR$\..\..\..\components\finsh\finsh_compiler.c</name>
</file>
<file>
@@ -2310,9 +2378,6 @@
<name>$PROJ_DIR$\..\..\..\src\scheduler.c</name>
</file>
<file>
- <name>$PROJ_DIR$\..\..\..\src\signal.c</name>
- </file>
- <file>
<name>$PROJ_DIR$\..\..\..\src\thread.c</name>
</file>
<file>
@@ -2320,6 +2385,54 @@
</file>
</group>
<group>
+ <name>libc</name>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\common\stdlib.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\common\time.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\common\unistd.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\environ.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\libc.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\rmtx.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\stdio.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_close.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_lseek.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_mem.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_open.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_read.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_remove.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscall_write.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\..\..\components\libc\compilers\dlib\syscalls.c</name>
+ </file>
+ </group>
+ <group>
<name>Libraries</name>
<file>
<name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_hal.c</name>
@@ -2393,5 +2506,20 @@
<file>
<name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_hal_uart_ex.c</name>
</file>
+ <file>
+ <name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_ll_sdmmc.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_hal_sd.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_ll_delayblock.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_hal_rtc.c</name>
+ </file>
+ <file>
+ <name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_hal_rtc_ex.c</name>
+ </file>
</group>
</project>