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

Uart2bufmod #1443

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Uart2bufmod #1443

wants to merge 4 commits into from

Conversation

xjikka
Copy link
Contributor

@xjikka xjikka commented Nov 27, 2024

I added new routines to enable simultaneous use of both UARTs on Beken. Each UART has its own Ring Buffer. It is allocated only when used. The new routines use the uartindex parameter - specifying the port and also the buffer.

The goal is to use a measuring cube with two BL0942, each on one UART /I am working on the modification/.

Backward compatibility with UART switching in the config using the OBK_FLAG_USE_SECONDARY_UART flag has been preserved.

Currently only for the Beken platform, but it should not be a problem to add other platforms.

20241127 merged changes from main

@xjikka
Copy link
Contributor Author

xjikka commented Dec 5, 2024

@openshwprojects Can you please take a look to this PR before there are a lot of other changes on main so I don't have to resync source again? I'm running the whole junction box (3x beken every using 2 UARTS) on this PR and it's OK. There are no breaking changes, just separate buffers for both UARTs. Thanks.

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.

1 participant