Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_77017786
rt-thread
提交
96383266
R
rt-thread
项目概览
2301_77017786
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
96383266
编写于
10月 09, 2017
作者:
S
SummerGift
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[完善]:修改429bsp,8g的sd卡可以使用,但是大容量32g的卡无法通过初始化。
上级
326d405c
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
59 addition
and
15 deletion
+59
-15
bsp/stm32f429-apollo/.config
bsp/stm32f429-apollo/.config
+25
-3
bsp/stm32f429-apollo/drivers/drv_nand.h
bsp/stm32f429-apollo/drivers/drv_nand.h
+1
-1
bsp/stm32f429-apollo/drivers/drv_sdio_sd.c
bsp/stm32f429-apollo/drivers/drv_sdio_sd.c
+1
-1
bsp/stm32f429-apollo/rtconfig.h
bsp/stm32f429-apollo/rtconfig.h
+25
-3
bsp/stm32f429-apollo/template.uvoptx
bsp/stm32f429-apollo/template.uvoptx
+2
-2
bsp/stm32f429-apollo/template.uvprojx
bsp/stm32f429-apollo/template.uvprojx
+5
-5
未找到文件。
bsp/stm32f429-apollo/.config
浏览文件 @
96383266
...
...
@@ -72,7 +72,26 @@ CONFIG_FINSH_DEFAULT_PASSWORD="rtthread"
#
# Device virtual file system
#
# CONFIG_RT_USING_DFS is not set
CONFIG_RT_USING_DFS
=
y
# CONFIG_DFS_USING_WORKDIR is not set
CONFIG_DFS_FILESYSTEMS_MAX
=
4
CONFIG_DFS_FD_MAX
=
16
CONFIG_RT_USING_DFS_ELMFAT
=
y
CONFIG_RT_DFS_ELM_CODE_PAGE
=
437
CONFIG_RT_DFS_ELM_WORD_ACCESS
=
y
# CONFIG_RT_DFS_ELM_USE_LFN_0 is not set
# CONFIG_RT_DFS_ELM_USE_LFN_1 is not set
# CONFIG_RT_DFS_ELM_USE_LFN_2 is not set
CONFIG_RT_DFS_ELM_USE_LFN_3
=
y
CONFIG_RT_DFS_ELM_USE_LFN
=
3
CONFIG_RT_DFS_ELM_MAX_LFN
=
255
CONFIG_RT_DFS_ELM_DRIVES
=
2
CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE
=
4096
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
CONFIG_RT_DFS_ELM_REENTRANT
=
y
CONFIG_RT_USING_DFS_DEVFS
=
y
# CONFIG_RT_USING_DFS_NET is not set
# CONFIG_RT_USING_DFS_NFS is not set
#
# Device Drivers
...
...
@@ -88,9 +107,12 @@ CONFIG_RT_USING_I2C_BITOPS=y
CONFIG_RT_USING_MTD_NAND
=
y
CONFIG_RT_MTD_NAND_DEBUG
=
y
CONFIG_RT_USING_RTC
=
y
# CONFIG_RT_USING_SDIO is not set
CONFIG_RT_USING_SDIO
=
y
CONFIG_RT_USING_SPI
=
y
# CONFIG_RT_USING_SFUD is not set
CONFIG_RT_USING_SFUD
=
y
CONFIG_RT_SFUD_USING_SFDP
=
y
CONFIG_RT_SFUD_USING_FLASH_INFO_TABLE
=
y
CONFIG_RT_SFUD_DEBUG
=
y
# CONFIG_RT_USING_W25QXX is not set
# CONFIG_RT_USING_GD is not set
# CONFIG_RT_USING_ENC28J60 is not set
...
...
bsp/stm32f429-apollo/drivers/drv_nand.h
浏览文件 @
96383266
...
...
@@ -108,7 +108,7 @@ uint8_t NAND_ModeSet(uint8_t mode);
uint32_t
NAND_ReadID
(
void
);
uint8_t
NAND_ReadStatus
(
void
);
uint8_t
NAND_WaitForReady
(
void
);
static
rt_uint8_t
nand_reset
(
void
);
//
static rt_uint8_t nand_reset(void);
uint8_t
NAND_WaitRB
(
__IO
uint8_t
rb
);
void
NAND_Delay
(
volatile
rt_uint32_t
i
);
uint8_t
NAND_ReadPage
(
uint32_t
PageNum
,
uint16_t
ColNum
,
uint8_t
*
pBuffer
,
uint16_t
NumByteToRead
);
...
...
bsp/stm32f429-apollo/drivers/drv_sdio_sd.c
浏览文件 @
96383266
...
...
@@ -10,7 +10,7 @@ DMA_HandleTypeDef SDTxDMAHandler,SDRxDMAHandler; //SD
//SD卡初始化
//返回值:0 初始化正确;其他值,初始化错误
rt_uint8_t
SD_Init
(
void
)
rt_uint8_t
SD_Init
(
void
)
{
rt_uint8_t
SD_Error
;
...
...
bsp/stm32f429-apollo/rtconfig.h
浏览文件 @
96383266
...
...
@@ -65,7 +65,26 @@
/* Device virtual file system */
/* RT_USING_DFS is not set */
#define RT_USING_DFS
/* DFS_USING_WORKDIR is not set */
#define DFS_FILESYSTEMS_MAX 4
#define DFS_FD_MAX 16
#define RT_USING_DFS_ELMFAT
#define RT_DFS_ELM_CODE_PAGE 437
#define RT_DFS_ELM_WORD_ACCESS
/* RT_DFS_ELM_USE_LFN_0 is not set */
/* RT_DFS_ELM_USE_LFN_1 is not set */
/* RT_DFS_ELM_USE_LFN_2 is not set */
#define RT_DFS_ELM_USE_LFN_3
#define RT_DFS_ELM_USE_LFN 3
#define RT_DFS_ELM_MAX_LFN 255
#define RT_DFS_ELM_DRIVES 2
#define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
/* RT_DFS_ELM_USE_ERASE is not set */
#define RT_DFS_ELM_REENTRANT
#define RT_USING_DFS_DEVFS
/* RT_USING_DFS_NET is not set */
/* RT_USING_DFS_NFS is not set */
/* Device Drivers */
...
...
@@ -80,9 +99,12 @@
#define RT_USING_MTD_NAND
#define RT_MTD_NAND_DEBUG
#define RT_USING_RTC
/* RT_USING_SDIO is not set */
#define RT_USING_SDIO
#define RT_USING_SPI
/* RT_USING_SFUD is not set */
#define RT_USING_SFUD
#define RT_SFUD_USING_SFDP
#define RT_SFUD_USING_FLASH_INFO_TABLE
#define RT_SFUD_DEBUG
/* RT_USING_W25QXX is not set */
/* RT_USING_GD is not set */
/* RT_USING_ENC28J60 is not set */
...
...
bsp/stm32f429-apollo/template.uvoptx
浏览文件 @
96383266
...
...
@@ -28,7 +28,7 @@
<TargetOption>
<CLKADS>
12000000
</CLKADS>
<OPTTT>
<gFlags>
0
</gFlags>
<gFlags>
1
</gFlags>
<BeepAtEnd>
1
</BeepAtEnd>
<RunSim>
0
</RunSim>
<RunTarget>
1
</RunTarget>
...
...
@@ -77,7 +77,7 @@
<tvExpOptDlg>
0
</tvExpOptDlg>
<IsCurrentTarget>
1
</IsCurrentTarget>
</OPTFL>
<CpuCode>
0
</CpuCode>
<CpuCode>
18
</CpuCode>
<Books>
<Book>
<Number>
0
</Number>
...
...
bsp/stm32f429-apollo/template.uvprojx
浏览文件 @
96383266
...
...
@@ -256,17 +256,17 @@
<Size>
0x0
</Size>
</XRAM>
<OCR_RVCT1>
<Type>
0
</Type>
<Type>
1
</Type>
<StartAddress>
0x0
</StartAddress>
<Size>
0x0
</Size>
</OCR_RVCT1>
<OCR_RVCT2>
<Type>
0
</Type>
<Type>
1
</Type>
<StartAddress>
0x0
</StartAddress>
<Size>
0x0
</Size>
</OCR_RVCT2>
<OCR_RVCT3>
<Type>
0
</Type>
<Type>
1
</Type>
<StartAddress>
0x0
</StartAddress>
<Size>
0x0
</Size>
</OCR_RVCT3>
...
...
@@ -276,7 +276,7 @@
<Size>
0x100000
</Size>
</OCR_RVCT4>
<OCR_RVCT5>
<Type>
0
</Type>
<Type>
1
</Type>
<StartAddress>
0x0
</StartAddress>
<Size>
0x0
</Size>
</OCR_RVCT5>
...
...
@@ -322,7 +322,7 @@
<wLevel>
2
</wLevel>
<uThumb>
0
</uThumb>
<uSurpInc>
0
</uSurpInc>
<uC99>
0
</uC99>
<uC99>
1
</uC99>
<useXO>
0
</useXO>
<v6Lang>
1
</v6Lang>
<v6LangP>
1
</v6LangP>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录