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

Name UART based on address, not on the name in the datasheet #302

Closed
TG9541 opened this issue May 10, 2020 · 0 comments
Closed

Name UART based on address, not on the name in the datasheet #302

TG9541 opened this issue May 10, 2020 · 0 comments
Assignees

Comments

@TG9541
Copy link
Owner

TG9541 commented May 10, 2020

There are many names for STM8(S) UARTS: UART1, UART2, UART3, UART4, LINUART. Sometimes the same silicon has two names for a UART. If you use a sub-set of the features (plain old UART) the only thing that really matters is addresses.

Things get a lot easier and more transparent when UART1 is consistently used for the first UART address set, and UART2 for the second. It doesn't matter if the UART at the second address set is the only UART (as in STM8S Medium Density, e.g. STM8S105K6T6C).

This should solve the problem in #292 (see comment) and also make applications that use a UART more portable across devices.

@TG9541 TG9541 self-assigned this May 10, 2020
@TG9541 TG9541 closed this as completed in 7088fe9 May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant