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

drivers: serial: gd32: Add interrupt support #39897

Merged
merged 2 commits into from
Nov 23, 2021

Conversation

cameled
Copy link
Contributor

@cameled cameled commented Oct 29, 2021

Add interrupt supprot for gd32 usart driver.

Note:

  • RCU still use gd32 hal interface directly.
  • PINCTL still finished on boards board.c file.

Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

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

Hi @cameled ,

After few corrections I got driver working. Check comments and open to review.

boards/arm/gd32f403z_eval/gd32f403z_eval_defconfig Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Show resolved Hide resolved
drivers/serial/usart_gd32.c Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
@cameled cameled marked this pull request as ready for review November 8, 2021 01:16
@cameled cameled force-pushed the usart-gd32 branch 3 times, most recently from f6c2694 to 59333ff Compare November 8, 2021 03:48
Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

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

Hi @cameled ,

In general, LGTM, only nits with style. This is very important to keep code easy to read. Please, look resolved conversations and review it (I'm unable to set as unresolved).

Alignment is made with TAB (most you can) + spaces.

drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
@cameled cameled force-pushed the usart-gd32 branch 2 times, most recently from da2fde8 to f4a0779 Compare November 12, 2021 09:12
Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

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

overall LGTM, some minor changes requested

drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

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

Thank you for the changes @cameled .
LGTM!

@nandojve nandojve changed the title drivers: serial: gd32 usart add interrupt support drivers: serial: gd32: Add interrupt support Nov 22, 2021
@nandojve
Copy link
Member

Hello @cameled , can you rebase and push again to check if we get CI green?

Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

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

@cameled can you rebase?

drivers/serial/usart_gd32.c Outdated Show resolved Hide resolved
Initialize parity bit(Default NONE) from DTS.

Signed-off-by: HaiLong Yang <cameledyang@pm.me>
@cameled
Copy link
Contributor Author

cameled commented Nov 23, 2021

@nandojve @gmarull I'm located in Asia, message will return within one day.

Add interrupt support for gd32 usart driver.

Signed-off-by: HaiLong Yang <hailong.yang@brainco.cn>
@nashif nashif merged commit 5e035b0 into zephyrproject-rtos:main Nov 23, 2021
@cameled cameled deleted the usart-gd32 branch November 24, 2021 01:18
@nandojve nandojve added this to the v3.0.0 milestone Dec 13, 2021
@str4t0m str4t0m added the platform: GD32 GigaDevice label Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Boards area: Devicetree Binding PR modifies or adds a Device Tree binding area: Devicetree platform: GD32 GigaDevice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants