[update] sdio wifi.
This commit is contained in:
parent
0a54f4c3dd
commit
53dea16e5c
|
@ -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.c']
|
||||||
src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_cryp_ex.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',
|
path = [cwd + '/STM32MP1xx_HAL_Driver/Inc',
|
||||||
cwd + '/CMSIS/Device/ST/STM32MP1xx/Include',
|
cwd + '/CMSIS/Device/ST/STM32MP1xx/Include',
|
||||||
cwd + '/CMSIS/Core/Include',
|
cwd + '/CMSIS/Core/Include',
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
#define HAL_SAI_MODULE_ENABLED
|
#define HAL_SAI_MODULE_ENABLED
|
||||||
#define HAL_SD_MODULE_ENABLED
|
#define HAL_SD_MODULE_ENABLED
|
||||||
/*#define HAL_MMC_MODULE_ENABLED */
|
/*#define HAL_MMC_MODULE_ENABLED */
|
||||||
/*#define HAL_RTC_MODULE_ENABLED */
|
#define HAL_RTC_MODULE_ENABLED
|
||||||
/*#define HAL_SMBUS_MODULE_ENABLED */
|
/*#define HAL_SMBUS_MODULE_ENABLED */
|
||||||
/*#define HAL_SPDIFRX_MODULE_ENABLED */
|
/*#define HAL_SPDIFRX_MODULE_ENABLED */
|
||||||
#define HAL_SPI_MODULE_ENABLED
|
#define HAL_SPI_MODULE_ENABLED
|
||||||
|
|
|
@ -1003,7 +1003,66 @@ void HAL_SD_MspInit(SD_HandleTypeDef* hsd)
|
||||||
|
|
||||||
/* USER CODE END SDMMC1_MspInit 1 */
|
/* 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
|
#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.
|
* @brief This function is executed in case of error occurrence.
|
||||||
* @retval None
|
* @retval None
|
||||||
|
|
|
@ -58,10 +58,23 @@ menu "Onboard Peripheral Drivers"
|
||||||
select RT_USING_LWIP
|
select RT_USING_LWIP
|
||||||
|
|
||||||
config BSP_USING_SDMMC
|
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_SDIO
|
||||||
select RT_USING_DFS
|
select RT_USING_DFS
|
||||||
select RT_USING_DFS_ELMFAT
|
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
|
default n
|
||||||
|
|
||||||
menuconfig BSP_USING_AUDIO
|
menuconfig BSP_USING_AUDIO
|
||||||
|
|
|
@ -10,11 +10,17 @@
|
||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include "drv_sdio.h"
|
#include "drv_sdio.h"
|
||||||
|
|
||||||
|
#ifdef BSP_USING_SDIO1
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef BSP_USING_SDMMC
|
#ifdef BSP_USING_SDMMC
|
||||||
|
|
||||||
//#define DRV_DEBUG
|
#ifdef BSP_USING_SDIO2
|
||||||
|
#define DRV_DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DBG_TAG "drv.sdio"
|
#define DBG_TAG "drv.sdio"
|
||||||
#ifdef DRV_DEBUG
|
#ifdef DRV_DEBUG
|
||||||
#define DBG_LVL DBG_LOG
|
#define DBG_LVL DBG_LOG
|
||||||
|
@ -23,8 +29,9 @@
|
||||||
#endif /* DRV_DEBUG */
|
#endif /* DRV_DEBUG */
|
||||||
#include <rtdbg.h>
|
#include <rtdbg.h>
|
||||||
|
|
||||||
static SD_HandleTypeDef hsd;
|
static struct rt_mmcsd_host *host1;
|
||||||
static struct rt_mmcsd_host *host;
|
static struct rt_mmcsd_host *host2;
|
||||||
|
|
||||||
#define SDIO_TX_RX_COMPLETE_TIMEOUT_LOOPS (100000)
|
#define SDIO_TX_RX_COMPLETE_TIMEOUT_LOOPS (100000)
|
||||||
|
|
||||||
#define RTHW_SDIO_LOCK(_sdio) rt_mutex_take(&_sdio->mutex, RT_WAITING_FOREVER)
|
#define RTHW_SDIO_LOCK(_sdio) rt_mutex_take(&_sdio->mutex, RT_WAITING_FOREVER)
|
||||||
|
@ -47,13 +54,14 @@ struct rthw_sdio
|
||||||
};
|
};
|
||||||
|
|
||||||
/* SYSRAM SDMMC1/2 accesses */
|
/* SYSRAM SDMMC1/2 accesses */
|
||||||
|
#define SDCARD_ADDR 0x2FFC0000
|
||||||
#if defined(__CC_ARM) || defined(__CLANG_ARM)
|
#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__)
|
#elif defined(__ICCARM__)
|
||||||
#pragma location=0x2FFC0000
|
#pragma location = SDCARD_ADDR
|
||||||
rt_uint8_t cache_buf[SDIO_BUFF_SIZE];
|
__no_init static rt_uint8_t cache_buf[SDIO_BUFF_SIZE];
|
||||||
#elif defined(__GNUC__)
|
|
||||||
rt_uint8_t cache_buf[SDIO_BUFF_SIZE] __attribute__((at(0x2FFC0000)));
|
|
||||||
#endif
|
#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));
|
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 */
|
/* set host default attributes */
|
||||||
host->ops = &ops;
|
host->ops = &ops;
|
||||||
host->freq_min = 400 * 1000;
|
host->freq_min = 400 * 1000;
|
||||||
|
@ -503,29 +521,83 @@ void SDMMC1_IRQHandler(void)
|
||||||
{
|
{
|
||||||
rt_interrupt_enter();
|
rt_interrupt_enter();
|
||||||
/* Process All SDIO Interrupt Sources */
|
/* Process All SDIO Interrupt Sources */
|
||||||
rthw_sdio_irq_process(host);
|
rthw_sdio_irq_process(host1);
|
||||||
|
|
||||||
rt_interrupt_leave();
|
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)
|
int rt_hw_sdio_init(void)
|
||||||
{
|
{
|
||||||
struct stm32_sdio_des sdio_des;
|
#ifdef BSP_USING_SDIO1
|
||||||
|
struct stm32_sdio_des sdio_des1;
|
||||||
hsd.Instance = SDMMC1;
|
sdio_des1.hsd.Instance = SDMMC1;
|
||||||
HAL_SD_MspInit(&hsd);
|
HAL_SD_MspInit(&sdio_des1.hsd);
|
||||||
|
|
||||||
host = sdio_host_create(&sdio_des);
|
host1 = sdio_host_create(&sdio_des1);
|
||||||
if (host == RT_NULL)
|
if (host1 == RT_NULL)
|
||||||
{
|
{
|
||||||
LOG_E("host create fail");
|
LOG_E("host create fail");
|
||||||
return RT_NULL;
|
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;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
INIT_DEVICE_EXPORT(rt_hw_sdio_init);
|
INIT_DEVICE_EXPORT(rt_hw_sdio_init);
|
||||||
|
|
||||||
|
#ifdef BSP_USING_SDIO1
|
||||||
int mnt_init(void)
|
int mnt_init(void)
|
||||||
{
|
{
|
||||||
rt_device_t sd = RT_NULL;
|
rt_device_t sd = RT_NULL;
|
||||||
|
@ -552,4 +624,6 @@ int mnt_init(void)
|
||||||
}
|
}
|
||||||
INIT_ENV_EXPORT(mnt_init);
|
INIT_ENV_EXPORT(mnt_init);
|
||||||
|
|
||||||
|
#endif /* BSP_USING_SDIO1 */
|
||||||
|
|
||||||
#endif /* BSP_USING_SDMMC */
|
#endif /* BSP_USING_SDMMC */
|
||||||
|
|
|
@ -19,11 +19,12 @@
|
||||||
#include <drivers/mmcsd_core.h>
|
#include <drivers/mmcsd_core.h>
|
||||||
#include <drivers/sdio.h>
|
#include <drivers/sdio.h>
|
||||||
|
|
||||||
#define SDIO_BUFF_SIZE 4096
|
#ifndef SDIO1_BASE_ADDRESS
|
||||||
#define SDIO_ALIGN_LEN 32
|
#define SDIO1_BASE_ADDRESS (SDMMC1)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SDIO_BASE_ADDRESS
|
#ifndef SDIO2_BASE_ADDRESS
|
||||||
#define SDIO_BASE_ADDRESS (SDMMC1)
|
#define SDIO2_BASE_ADDRESS (SDMMC2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SDIO_CLOCK_FREQ
|
#ifndef SDIO_CLOCK_FREQ
|
||||||
|
@ -39,7 +40,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SDIO_MAX_FREQ
|
#ifndef SDIO_MAX_FREQ
|
||||||
#define SDIO_MAX_FREQ (50 * 1000 * 1000)
|
#define SDIO_MAX_FREQ (25 * 1000 * 1000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
|
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
|
||||||
|
@ -102,6 +103,7 @@ struct stm32_sdio_des
|
||||||
{
|
{
|
||||||
struct stm32_sdio *hw_sdio;
|
struct stm32_sdio *hw_sdio;
|
||||||
sdio_clk_get clk_get;
|
sdio_clk_get clk_get;
|
||||||
|
SD_HandleTypeDef hsd;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* stm32 sdio dirver class */
|
/* stm32 sdio dirver class */
|
||||||
|
|
|
@ -232,6 +232,8 @@
|
||||||
<state>STM32MP157Axx</state>
|
<state>STM32MP157Axx</state>
|
||||||
<state>__LOG_TRACE_IO_</state>
|
<state>__LOG_TRACE_IO_</state>
|
||||||
<state>__RTTHREAD__</state>
|
<state>__RTTHREAD__</state>
|
||||||
|
<state>RT_USING_DLIBC</state>
|
||||||
|
<state>_DLIB_FILE_DESCRIPTOR</state>
|
||||||
<state>USE_HAL_DRIVER</state>
|
<state>USE_HAL_DRIVER</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
|
@ -358,23 +360,28 @@
|
||||||
<option>
|
<option>
|
||||||
<name>CCIncludePath2</name>
|
<name>CCIncludePath2</name>
|
||||||
<state />
|
<state />
|
||||||
|
<state>$PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs</state>
|
||||||
<state>$PROJ_DIR$\..\..\..\components\finsh</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$\..\..\..\components\drivers\include</state>
|
|
||||||
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc</state>
|
|
||||||
<state>$PROJ_DIR$\.</state>
|
|
||||||
<state>$PROJ_DIR$\applications</state>
|
|
||||||
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
|
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
|
||||||
|
<state>$PROJ_DIR$\..\..\..\components\drivers\include</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$\board\CubeMX_Config\CM4\Inc</state>
|
||||||
|
<state>$PROJ_DIR$\..\..\..\components\dfs\include</state>
|
||||||
<state>$PROJ_DIR$\..\libraries\HAL_Drivers\config</state>
|
<state>$PROJ_DIR$\..\libraries\HAL_Drivers\config</state>
|
||||||
<state>$PROJ_DIR$\board</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$\..\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$\..\..\..\include</state>
|
||||||
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\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>
|
||||||
<option>
|
<option>
|
||||||
<name>CCStdIncCheck</name>
|
<name>CCStdIncCheck</name>
|
||||||
|
@ -1309,6 +1316,8 @@
|
||||||
<state>STM32MP157Axx</state>
|
<state>STM32MP157Axx</state>
|
||||||
<state>__LOG_TRACE_IO_</state>
|
<state>__LOG_TRACE_IO_</state>
|
||||||
<state>__RTTHREAD__</state>
|
<state>__RTTHREAD__</state>
|
||||||
|
<state>RT_USING_DLIBC</state>
|
||||||
|
<state>_DLIB_FILE_DESCRIPTOR</state>
|
||||||
<state>USE_HAL_DRIVER</state>
|
<state>USE_HAL_DRIVER</state>
|
||||||
</option>
|
</option>
|
||||||
<option>
|
<option>
|
||||||
|
@ -1435,23 +1444,28 @@
|
||||||
<option>
|
<option>
|
||||||
<name>CCIncludePath2</name>
|
<name>CCIncludePath2</name>
|
||||||
<state />
|
<state />
|
||||||
|
<state>$PROJ_DIR$\..\..\..\components\dfs\filesystems\devfs</state>
|
||||||
<state>$PROJ_DIR$\..\..\..\components\finsh</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$\..\..\..\components\drivers\include</state>
|
|
||||||
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Inc</state>
|
|
||||||
<state>$PROJ_DIR$\.</state>
|
|
||||||
<state>$PROJ_DIR$\applications</state>
|
|
||||||
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
|
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Core\Include</state>
|
||||||
|
<state>$PROJ_DIR$\..\..\..\components\drivers\include</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$\board\CubeMX_Config\CM4\Inc</state>
|
||||||
|
<state>$PROJ_DIR$\..\..\..\components\dfs\include</state>
|
||||||
<state>$PROJ_DIR$\..\libraries\HAL_Drivers\config</state>
|
<state>$PROJ_DIR$\..\libraries\HAL_Drivers\config</state>
|
||||||
<state>$PROJ_DIR$\board</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$\..\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$\..\..\..\include</state>
|
||||||
<state>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\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>
|
||||||
<option>
|
<option>
|
||||||
<name>CCStdIncCheck</name>
|
<name>CCStdIncCheck</name>
|
||||||
|
@ -2183,6 +2197,21 @@
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\components\drivers\misc\pin.c</name>
|
<name>$PROJ_DIR$\..\..\..\components\drivers\misc\pin.c</name>
|
||||||
</file>
|
</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>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\components\drivers\serial\serial.c</name>
|
<name>$PROJ_DIR$\..\..\..\components\drivers\serial\serial.c</name>
|
||||||
</file>
|
</file>
|
||||||
|
@ -2219,6 +2248,9 @@
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\board\CubeMX_Config\CM4\Src\stm32mp1xx_hal_msp.c</name>
|
<name>$PROJ_DIR$\board\CubeMX_Config\CM4\Src\stm32mp1xx_hal_msp.c</name>
|
||||||
</file>
|
</file>
|
||||||
|
<file>
|
||||||
|
<name>$PROJ_DIR$\board\ports\drv_sdio.c</name>
|
||||||
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\iar\startup_stm32mp15xx.s</name>
|
<name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\CMSIS\Device\ST\STM32MP1xx\Source\Templates\iar\startup_stm32mp15xx.s</name>
|
||||||
</file>
|
</file>
|
||||||
|
@ -2232,6 +2264,39 @@
|
||||||
<name>$PROJ_DIR$\..\libraries\HAL_Drivers\drv_common.c</name>
|
<name>$PROJ_DIR$\..\libraries\HAL_Drivers\drv_common.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</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>
|
<group>
|
||||||
<name>finsh</name>
|
<name>finsh</name>
|
||||||
<file>
|
<file>
|
||||||
|
@ -2243,6 +2308,9 @@
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\components\finsh\msh.c</name>
|
<name>$PROJ_DIR$\..\..\..\components\finsh\msh.c</name>
|
||||||
</file>
|
</file>
|
||||||
|
<file>
|
||||||
|
<name>$PROJ_DIR$\..\..\..\components\finsh\msh_file.c</name>
|
||||||
|
</file>
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\components\finsh\finsh_compiler.c</name>
|
<name>$PROJ_DIR$\..\..\..\components\finsh\finsh_compiler.c</name>
|
||||||
</file>
|
</file>
|
||||||
|
@ -2309,9 +2377,6 @@
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\src\scheduler.c</name>
|
<name>$PROJ_DIR$\..\..\..\src\scheduler.c</name>
|
||||||
</file>
|
</file>
|
||||||
<file>
|
|
||||||
<name>$PROJ_DIR$\..\..\..\src\signal.c</name>
|
|
||||||
</file>
|
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\..\..\src\thread.c</name>
|
<name>$PROJ_DIR$\..\..\..\src\thread.c</name>
|
||||||
</file>
|
</file>
|
||||||
|
@ -2319,6 +2384,54 @@
|
||||||
<name>$PROJ_DIR$\..\..\..\src\timer.c</name>
|
<name>$PROJ_DIR$\..\..\..\src\timer.c</name>
|
||||||
</file>
|
</file>
|
||||||
</group>
|
</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>
|
<group>
|
||||||
<name>Libraries</name>
|
<name>Libraries</name>
|
||||||
<file>
|
<file>
|
||||||
|
@ -2393,5 +2506,20 @@
|
||||||
<file>
|
<file>
|
||||||
<name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_hal_uart_ex.c</name>
|
<name>$PROJ_DIR$\..\libraries\STM32MPxx_HAL\STM32MP1xx_HAL_Driver\Src\stm32mp1xx_hal_uart_ex.c</name>
|
||||||
</file>
|
</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>
|
</group>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue