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 Raspberry Pi3 Uart #496

Merged
merged 2 commits into from
Sep 2, 2024
Merged

Add Raspberry Pi3 Uart #496

merged 2 commits into from
Sep 2, 2024

Conversation

miyazakh
Copy link
Contributor

Add use case on Raspberry Pi 3 B+ HW

hal/raspi3.c Outdated
} while(*UART0_FR & 0x10);
/* read it and return */
c = (char)(*UART0_DR);
/* convert carrige return to newline */
Copy link
Member

Choose a reason for hiding this comment

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

spelling: carriage. Is this conversion really required?

hal/raspi3.c Outdated
uint32_t len = sz;

while (len > 0 && *buf) {
/* convert newline to carrige return + newline */
Copy link
Member

@danielinux danielinux Aug 26, 2024

Choose a reason for hiding this comment

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

spelling, plus conversion from CR to CR+LF, that should be handled by the caller, or left as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Agree. Carriage return code should be handled by the caller.

Copy link
Member

@danielinux danielinux left a comment

Choose a reason for hiding this comment

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

Good addition. Thanks! Just left a couple of comments on the spelling of "carriage" in "carriage return". In the same context, I'm wondering if these uart API should not handle the CR to CR+LF conversion at all.

@danielinux danielinux merged commit 9f551a2 into wolfSSL:master Sep 2, 2024
95 checks passed
@miyazakh miyazakh deleted the raspi_uart branch September 2, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants