Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
红岛
rt-thread
提交
588bda55
R
rt-thread
项目概览
红岛
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
588bda55
编写于
3月 18, 2020
作者:
gyd0317
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change gcc statup files
上级
db23a69f
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
47 addition
and
113 deletion
+47
-113
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xb.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xb.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xba.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xba.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xc.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xc.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xb.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xb.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xba.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xba.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xc.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xc.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xca.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xca.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xd.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xd.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xdx.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xdx.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xe.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xe.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xb.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xb.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xba.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xba.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xc.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xc.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xca.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xca.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xd.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xd.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xdx.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xdx.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xe.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xe.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xc.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xc.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xca.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xca.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xd.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xd.s
+2
-2
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xdx.s
.../ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xdx.s
+2
-3
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xe.s
...e/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xe.s
+2
-2
bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.icf
...braries/templates/stm32l1xx/board/linker_scripts/link.icf
+1
-1
bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds
...braries/templates/stm32l1xx/board/linker_scripts/link.lds
+2
-2
bsp/stm32/libraries/templates/stm32l1xx/board/ports/fal_cfg.h
...stm32/libraries/templates/stm32l1xx/board/ports/fal_cfg.h
+0
-34
bsp/stm32/libraries/templates/stm32l1xx/board/ports/spi_flash_init.c
...ibraries/templates/stm32l1xx/board/ports/spi_flash_init.c
+0
-31
未找到文件。
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xb.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xba.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xc.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xb.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xba.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xc.s
浏览文件 @
588bda55
...
...
@@ -90,8 +90,8 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
/*
bl
__libc_init_array
*/
bl
SystemInit
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xca.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xd.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xdx.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l151xe.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xb.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xba.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xc.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xca.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xd.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xdx.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l152xe.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xc.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xca.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point. */
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xd.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xdx.s
浏览文件 @
588bda55
...
...
@@ -90,10 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
bl
__libc_init_array
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l162xe.s
浏览文件 @
588bda55
...
...
@@ -90,9 +90,9 @@ LoopFillZerobss:
bcc
FillZerobss
/*
Call
the
clock
system
intitialization
function
.
*/
bl
SystemInit
bl
SystemInit
/*
Call
static
constructors
*/
/*
bl
__libc_init_array
*/
/*
bl
__libc_init_array
*/
/*
Call
the
application
's entry point.*/
bl
entry
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.icf
浏览文件 @
588bda55
...
...
@@ -25,4 +25,4 @@ do not initialize { section .noinit };
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
place in ROM_region { readonly };
place in RAM_region { readwrite, last block CSTACK};
\ No newline at end of file
place in RAM_region { readwrite, last block CSTACK};
bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds
浏览文件 @
588bda55
/*
* linker script for STM32
F10x
with GNU ld
* linker script for STM32
L1XX
with GNU ld
*/
/* Program Entry, set to mark it as "used" and avoid gc */
MEMORY
{
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 128KB flash */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /*
20
K sram */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /*
16
K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x200;
...
...
bsp/stm32/libraries/templates/stm32l1xx/board/ports/fal_cfg.h
已删除
100644 → 0
浏览文件 @
db23a69f
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-12-8 zylx first version
*/
#ifndef _FAL_CFG_H_
#define _FAL_CFG_H_
#include <rtthread.h>
#include <board.h>
extern
const
struct
fal_flash_dev
stm32_onchip_flash
;
/* flash device table */
#define FAL_FLASH_DEV_TABLE \
{ \
&stm32_onchip_flash, \
}
/* ====================== Partition Configuration ========================== */
#ifdef FAL_PART_HAS_TABLE_CFG
/* partition table */
#define FAL_PART_TABLE \
{ \
{FAL_PART_MAGIC_WROD, "app", "onchip_flash", 0, 112 * 1024, 0}, \
{FAL_PART_MAGIC_WROD, "param", "onchip_flash", 112* 1024 , 16 * 1024, 0}, \
}
#endif
/* FAL_PART_HAS_TABLE_CFG */
#endif
/* _FAL_CFG_H_ */
bsp/stm32/libraries/templates/stm32l1xx/board/ports/spi_flash_init.c
已删除
100644 → 0
浏览文件 @
db23a69f
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-27 SummerGift add spi flash port file
*/
#include <rtthread.h>
#include "spi_flash.h"
#include "spi_flash_sfud.h"
#include "drv_spi.h"
#if defined(BSP_USING_SPI_FLASH)
static
int
rt_hw_spi_flash_init
(
void
)
{
__HAL_RCC_GPIOB_CLK_ENABLE
();
rt_hw_spi_device_attach
(
"spi2"
,
"spi20"
,
GPIOB
,
GPIO_PIN_12
);
if
(
RT_NULL
==
rt_sfud_flash_probe
(
"W25Q16"
,
"spi20"
))
{
return
-
RT_ERROR
;
};
return
RT_EOK
;
}
INIT_COMPONENT_EXPORT
(
rt_hw_spi_flash_init
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录