Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_77017786
rt-thread
提交
c0855d13
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,发现更多精彩内容 >>
提交
c0855d13
编写于
2月 27, 2019
作者:
J
jinsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加 flash
上级
8e28732f
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
832 addition
and
151 deletion
+832
-151
bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash_f7.c
bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash_f7.c
+12
-1
bsp/stm32/stm32f746-st-disco/.config
bsp/stm32/stm32f746-st-disco/.config
+1
-0
bsp/stm32/stm32f746-st-disco/README.md
bsp/stm32/stm32f746-st-disco/README.md
+1
-1
bsp/stm32/stm32f746-st-disco/board/Kconfig
bsp/stm32/stm32f746-st-disco/board/Kconfig
+3
-0
bsp/stm32/stm32f746-st-disco/project.uvoptx
bsp/stm32/stm32f746-st-disco/project.uvoptx
+769
-1
bsp/stm32/stm32f746-st-disco/project.uvprojx
bsp/stm32/stm32f746-st-disco/project.uvprojx
+46
-148
未找到文件。
bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash_f7.c
浏览文件 @
c0855d13
...
...
@@ -52,6 +52,7 @@ static rt_uint32_t GetSector(rt_uint32_t Address)
{
sector
=
FLASH_SECTOR_1
;
}
#if (FLASH_SECTOR_TOTAL >= 4)
else
if
((
Address
<
ADDR_FLASH_SECTOR_3
)
&&
(
Address
>=
ADDR_FLASH_SECTOR_2
))
{
sector
=
FLASH_SECTOR_2
;
...
...
@@ -60,6 +61,7 @@ static rt_uint32_t GetSector(rt_uint32_t Address)
{
sector
=
FLASH_SECTOR_3
;
}
#elif (FLASH_SECTOR_TOTAL >= 8)
else
if
((
Address
<
ADDR_FLASH_SECTOR_5
)
&&
(
Address
>=
ADDR_FLASH_SECTOR_4
))
{
sector
=
FLASH_SECTOR_4
;
...
...
@@ -76,6 +78,7 @@ static rt_uint32_t GetSector(rt_uint32_t Address)
{
sector
=
FLASH_SECTOR_7
;
}
#elif (FLASH_SECTOR_TOTAL >= 24)
else
if
((
Address
<
ADDR_FLASH_SECTOR_9
)
&&
(
Address
>=
ADDR_FLASH_SECTOR_8
))
{
sector
=
FLASH_SECTOR_8
;
...
...
@@ -88,10 +91,18 @@ static rt_uint32_t GetSector(rt_uint32_t Address)
{
sector
=
FLASH_SECTOR_10
;
}
else
/* (Address < FLASH_END_ADDR) && (Address >= ADDR_FLASH_SECTOR_11) */
#else
else
{
#if (FLASH_SECTOR_TOTAL == 4)
sector
=
FLASH_SECTOR_4
;
#elif (FLASH_SECTOR_TOTAL == 8)
sector
=
FLASH_SECTOR_8
;
#elif (FLASH_SECTOR_TOTAL == 24)
sector
=
FLASH_SECTOR_11
;
#endif
}
#endif
return
sector
;
}
...
...
bsp/stm32/stm32f746-st-disco/.config
浏览文件 @
c0855d13
...
...
@@ -320,6 +320,7 @@ CONFIG_BSP_USING_GPIO=y
CONFIG_BSP_USING_UART
=
y
CONFIG_BSP_USING_UART1
=
y
# CONFIG_BSP_UART1_RX_USING_DMA is not set
# CONFIG_BSP_USING_ON_CHIP_FLASH is not set
# CONFIG_BSP_USING_QSPI is not set
# CONFIG_BSP_USING_SDIO is not set
...
...
bsp/stm32/stm32f746-st-disco/README.md
浏览文件 @
c0855d13
...
...
@@ -53,7 +53,7 @@ STM32F746-disco 是 ST 推出的一款基于 ARM Cortex-M7 内核的开发板,
| SPI | 暂不支持 | 即将支持 |
| QSPI | 支持 | QSPI1 |
| I2C | 暂不支持 | 即将支持 |
| FLASH |
暂不支持 | 即将支持
|
| FLASH |
支持 |
|
| WDT | 暂不支持 | 即将支持 |
| SDIO | 支持 | 支持 |
| USB Device | 暂不支持 | 即将支持 |
...
...
bsp/stm32/stm32f746-st-disco/board/Kconfig
浏览文件 @
c0855d13
...
...
@@ -61,6 +61,9 @@ menu "On-chip Peripheral Drivers"
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
default n
endif
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
config BSP_USING_QSPI
bool "Enable QSPI BUS"
select RT_USING_QSPI
...
...
bsp/stm32/stm32f746-st-disco/project.uvoptx
浏览文件 @
c0855d13
此差异已折叠。
点击以展开。
bsp/stm32/stm32f746-st-disco/project.uvprojx
浏览文件 @
c0855d13
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录