-
Notifications
You must be signed in to change notification settings - Fork 5.4k
stm32f103-keysking学习板BSP移植(first version) #10286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
60ecc0b
添加bsp到ci
QianJiu05 54508b2
[BSP]stm32f103-keysking学习板 bsp移植(first version)
QianJiu05 7fe53d6
压缩board.png
QianJiu05 482ae6a
删除不必要文件(main.c,system_stm32f1xx.c)
QianJiu05 4c1d231
修改ignore文件
QianJiu05 31df99e
删改CubeMX_Config多余文件
QianJiu05 93f696d
修改attach文件为ci.attachconfig.yml
QianJiu05 2bcfaf5
yml添加 --strict
QianJiu05 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
bsp/stm32/stm32f103-keysking-learning/.ci/attachconfig/nano.attach
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # scons: --strict | ||
| CONFIG_RT_USING_NANO=y | ||
2 changes: 2 additions & 0 deletions
2
bsp/stm32/stm32f103-keysking-learning/.ci/attachconfig/rtduino.attach
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # scons: --strict | ||
| CONFIG_BSP_USING_ARDUINO=y |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些配置是你常用的配置吗?还是拷贝其他bsp的?
这里可以采用yml的方式保存,.attach的方式文件太多。
yml方式保存的配置是bsp常用的一些配置。具体参考rt-spark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/RT-Thread/rt-thread/blob/master/bsp/stm32/stm32f407-rt-spark/.ci/attachconfig/ci.attachconfig.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,这份bsp是基于bluepill的bsp改的,这是原bsp的配置,目前我这份bsp作为第一个版本只支持串口和gpio,所以没去管理这些配置。这个需要从一开始就做吗(我以为是等功能齐全之后再选择性开启的),如果是的话那我根据rt-spark的研究一下
此外,stm32f1xx_it.c这个文件别的bsp都是保留的,我这份没开中断所以是空的,但后面肯定是会用到的,是不是可以保留
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stm32f1xx_it.c main.h和it.h这个用不到的,删了吧。没有bsp用到这个文件,其他bsp只是保留了一下,有ioc文件就可以生成了,删除之后你看CI能不能编译过就可以了。
只支持串口和gpio,你也可以考虑用yml存放,配置可以不用很多,有一两个自己常用的配置即可。把*.attach文件改为yml文件。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
开中断也是用不到的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
您好,我根据论坛文档和rt-spark的yml写了一份yml,请问yml选项需要添加 - '--strict'强制检查吗