Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
okll00
rt-thread
提交
79cb96bc
R
rt-thread
项目概览
okll00
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
79cb96bc
编写于
12月 26, 2018
作者:
S
SummerGift
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp][stm32] update template
上级
2daa521e
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
60 addition
and
19 deletion
+60
-19
bsp/stm32/libraries/templates/stm32f0xx/board/SConscript
bsp/stm32/libraries/templates/stm32f0xx/board/SConscript
+7
-1
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
+4
-0
bsp/stm32/libraries/templates/stm32f10x/board/SConscript
bsp/stm32/libraries/templates/stm32f10x/board/SConscript
+7
-1
bsp/stm32/libraries/templates/stm32f10x/board/board.h
bsp/stm32/libraries/templates/stm32f10x/board/board.h
+4
-0
bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
+7
-0
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
+4
-0
bsp/stm32/libraries/templates/stm32f7xx/board/SConscript
bsp/stm32/libraries/templates/stm32f7xx/board/SConscript
+4
-0
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
+4
-3
bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
+9
-0
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
+10
-14
未找到文件。
bsp/stm32/libraries/templates/stm32f0xx/board/SConscript
浏览文件 @
79cb96bc
...
...
@@ -23,7 +23,13 @@ elif rtconfig.CROSS_TOOL == 'keil':
src
+=
[
startup_path_prefix
+
'/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/arm/startup_stm32f091xc.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
src
+=
[
startup_path_prefix
+
'/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/iar/startup_stm32f091xc.s'
]
# STM32F030x6 || STM32F030x8 || STM32F031x6
# STM32F038xx || STM32F042x6 || STM32F048xx
# STM32F070x6 || STM32F051x8 || STM32F058xx
# STM32F071xB || STM32F072xB || STM32F078xx
# STM32F070xB || STM32F091xC || STM32F098xx || STM32F030xC
# You can select chips from the list above
CPPDEFINES
=
[
'STM32F091xC'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
Return
(
'group'
)
bsp/stm32/libraries/templates/stm32f0xx/board/board.h
浏览文件 @
79cb96bc
...
...
@@ -15,6 +15,10 @@
#include <stm32f0xx.h>
#include "drv_common.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (256 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
/* Internal SRAM memory size[Kbytes] <8-64>, Default: 64*/
#define STM32_SRAM_SIZE 32
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
...
bsp/stm32/libraries/templates/stm32f10x/board/SConscript
浏览文件 @
79cb96bc
...
...
@@ -23,7 +23,13 @@ elif rtconfig.CROSS_TOOL == 'keil':
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s'
]
# STM32F100xB || STM32F100xE || STM32F101x6
# STM32F101xB || STM32F101xE || STM32F101xG
# STM32F102x6 || STM32F102xB || STM32F103x6
# STM32F103xB || STM32F103xE || STM32F103xG
# STM32F105xC || STM32F107xC)
# You can select chips from the list above
CPPDEFINES
=
[
'STM32F103xB'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
Return
(
'group'
)
bsp/stm32/libraries/templates/stm32f10x/board/board.h
浏览文件 @
79cb96bc
...
...
@@ -15,6 +15,10 @@
#include <stm32f1xx.h>
#include "drv_common.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (128 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
/* Internal SRAM memory size[Kbytes] <8-64>, Default: 64*/
#define STM32_SRAM_SIZE 20
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
...
bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
浏览文件 @
79cb96bc
...
...
@@ -24,6 +24,13 @@ elif rtconfig.CROSS_TOOL == 'keil':
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
src
+=
[
startup_path_prefix
+
'/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f407xx.s'
]
# STM32F405xx) || STM32F415xx) || STM32F407xx) || STM32F417xx)
# STM32F427xx) || STM32F437xx) || STM32F429xx) || STM32F439xx)
# STM32F401xC) || STM32F401xE) || STM32F410Tx) || STM32F410Cx)
# STM32F410Rx) || STM32F411xE) || STM32F446xx) || STM32F469xx)
# STM32F479xx) || STM32F412Cx) || STM32F412Rx) || STM32F412Vx)
# STM32F412Zx) || STM32F413xx) || STM32F423xx)
# You can select chips from the list above
CPPDEFINES
=
[
'STM32F407xx'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
...
...
bsp/stm32/libraries/templates/stm32f4xx/board/board.h
浏览文件 @
79cb96bc
...
...
@@ -15,6 +15,10 @@
#include <stm32f4xx.h>
#include "drv_common.h"
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_SRAM_SIZE 128
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
...
...
bsp/stm32/libraries/templates/stm32f7xx/board/SConscript
浏览文件 @
79cb96bc
...
...
@@ -17,6 +17,10 @@ elif rtconfig.CROSS_TOOL == 'keil':
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
src
+=
[
cwd
+
'/../../libraries/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f767xx.s'
]
# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx ||
# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx ||
# STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx
# You can select chips from the list above
CPPDEFINES
=
[
'STM32F767xx'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
...
...
bsp/stm32/libraries/templates/stm32f7xx/board/board.h
浏览文件 @
79cb96bc
...
...
@@ -15,9 +15,11 @@
#include <stm32f7xx.h>
#include "drv_common.h"
#ifdef BSP_USING_GPIO
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (1024 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_SRAM_SIZE
256
#define STM32_SRAM_SIZE
(512)
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
...
...
@@ -36,4 +38,3 @@ extern int __bss_end;
void
SystemClock_Config
(
void
);
#endif
bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
浏览文件 @
79cb96bc
...
...
@@ -24,6 +24,15 @@ elif rtconfig.CROSS_TOOL == 'keil':
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
src
+=
[
startup_path_prefix
+
'/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l475xx.s'
]
# STM32L412xx || STM32L422xx || STM32L431xx
# STM32L432xx || STM32L433xx || STM32L442xx
# STM32L443xx || STM32L451xx || STM32L452xx
# STM32L462xx || STM32L471xx || STM32L475xx
# STM32L476xx || STM32L485xx || STM32L486xx
# STM32L496xx || STM32L4A6xx || STM32L4R5xx
# STM32L4R7xx || STM32L4R9xx || STM32L4S5xx
# STM32L4S7xx || STM32L4S9xx
# You can select chips from the list above
CPPDEFINES
=
[
'STM32L475xx'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
...
...
bsp/stm32/libraries/templates/stm32l4xx/board/board.h
浏览文件 @
79cb96bc
...
...
@@ -15,22 +15,18 @@
#include <stm32l4xx.h>
#include "drv_common.h"
#define STM32_SRAM_SIZE 96
#define STM32_SRAM_END (0x20000000 + STM32_SRAM_SIZE * 1024)
#if defined(__CC_ARM) || defined(__CLANG_ARM)
extern
int
Image
$$
RW_IRAM1
$$
ZI
$$
Limit
;
#define HEAP_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
#pragma section="CSTACK"
#define HEAP_BEGIN (__segment_end("CSTACK"))
#else
extern
int
__bss_end
;
#define HEAP_BEGIN (&__bss_end)
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
#define STM32_FLASH_SIZE (512 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_SRAM1_SIZE (96)
#define STM32_SRAM1_START (0x20000000)
#define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024)
#define HEAP_END STM32_SRAM_END
#define HEAP_BEGIN STM32_SRAM1_START
#define HEAP_END STM32_SRAM1_END
void
SystemClock_Config
(
void
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录