Skip to content
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

add support for Microsemi SmartFusion2 family FPGA #3661

Merged
merged 5 commits into from
Nov 18, 2020

Conversation

whik
Copy link
Contributor

@whik whik commented Jun 5, 2020

拉取/合并请求描述:(PR description)

[添加对Microsemi SmartFusion2 系列 FPGA 芯片的支持 add support for Microsemi SmartFusion2 family FPGA]

以下的内容不应该在提交PR时的message修改,修改下述message,PR会被直接关闭。请在提交PR后,浏览器查看PR并对以下检查项逐项check,没问题后逐条在页面上打钩。
The following content must not be changed in submitted PR message. Otherwise, the PR will be closed immediately. After submitted PR, please use web browser to visit PR, and check items one by one, and ticked them if no problem.

当前拉取/合并请求的状态 Intent for your PR

必须选择一项 Choose one (Mandatory):

  • 本拉取/合并请求是一个草稿版本 This PR is for a code-review and is intended to get feedback
  • 本拉取/合并请求是一个成熟版本 This PR is mature, and ready to be integrated into the repo

代码质量 Code Quality:

我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:

  • 已经仔细查看过代码改动的对比 Already check the difference between PR and old code
  • 代码风格正确,包括缩进空格,命名及其他风格 Style guide is adhered to, including spacing, naming and other style
  • 没有垃圾代码,代码尽量精简,不包含#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up
  • 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP All modifications are justified and not affect other components or BSP
  • 对难懂代码均提供对应的注释 I've commented appropriately where code is tricky
  • 本拉取/合并请求代码是高质量的 Code in this PR is of high quality

@CLAassistant
Copy link

CLAassistant commented Jun 5, 2020

CLA assistant check
All committers have signed the CLA.

@BernardXiong
Copy link
Member

  • Please move the picture to this bsp folder.
  • Please remove the unnecessaryfiles:
    • EventRecorderStub.scvd
    • JLinkLog.txt
    • JLinkSettings.ini
    • README.txt (empty file)
    • project.uvguix.whik
  • obj/project.sct is really strange. To keep it under the same folder with project is better.
  • Please add scons support for this bsp.

And please keep the folder style and code style. Thank you for your contribution.

2.Add support for GPIO and UART peripherals
3.Add pin and serial device driver support
4.Put pictures in local folder
5.Modify README file
Copy link
Member

@BernardXiong BernardXiong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep code style, such as file copyright information and add SConscript for scons.

@@ -0,0 +1,39 @@
[BREAKPOINTS]
ForceImpTypeAny = 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not necessary.

{
int count = 1;

rt_pin_attach_irq(SW0_PIN, PIN_IRQ_MODE_RISING, sw0_isr, RT_NULL);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why enable the pin input here? It's only a led blink sample.

@@ -0,0 +1,434 @@
#include <rtthread.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide the copyright information.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@whik whik requested a review from BernardXiong July 9, 2020 13:08
2.Add Kconfig file
3.Delete some unnecessary files and directories
Copy link
Member

@Guozhanxin Guozhanxin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试了下,没有问题。这个需要添加到ci里吗?

@whik
Copy link
Contributor Author

whik commented Nov 10, 2020 via email

@Guozhanxin
Copy link
Member

@BernardXiong
Copy link
Member

gcc build failed.

@whik whik requested a review from Guozhanxin November 13, 2020 15:03
@BernardXiong BernardXiong added the +1 Agree +1 label Nov 13, 2020
@Guozhanxin Guozhanxin added +2 Agree +2 and removed +1 Agree +1 labels Nov 16, 2020
@BernardXiong BernardXiong merged commit 886ce43 into RT-Thread:master Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
+2 Agree +2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants