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

move GetCommPorts, add missing comm functions, add communication events #4648

Merged
merged 3 commits into from
Jan 5, 2025

Conversation

lzurbriggen
Copy link
Contributor

@lzurbriggen lzurbriggen commented Jan 2, 2025

Calling GetCommPorts from core:sys/windows resulted in unresolved external symbol GetCommPorts referenced in function because it's provided by OneCore.lib and not Kernel32.lib.

I'm not really familiar with low level programming and couldn't really find a good overview over OneCore.lib (available in >=Win10 afaik), so I'm not sure if there are other functions that should be moved.

I also added the missing SetCommMask, GetCommMask, WaitCommEvent, as well as communication function constants

Docs

@lzurbriggen lzurbriggen marked this pull request as ready for review January 2, 2025 17:15
@lzurbriggen lzurbriggen marked this pull request as draft January 4, 2025 11:24
@laytan
Copy link
Collaborator

laytan commented Jan 5, 2025

Why is this draft? It looks fine to me!

@lzurbriggen
Copy link
Contributor Author

@laytan I saw some pipelines fail and didn't have time to investigate. I also found some related missing functions (serial communication stuff), so I'll be pushing these as well.

@lzurbriggen lzurbriggen marked this pull request as ready for review January 5, 2025 17:07
@lzurbriggen lzurbriggen changed the title move GetCommPorts to correct foreign block move GetCommPorts, add missing comm functions, add communication events Jan 5, 2025
@laytan
Copy link
Collaborator

laytan commented Jan 5, 2025

Ah alright, CI fails frequently at the moment so those weren't your fault

core/sys/windows/kernel32.odin Outdated Show resolved Hide resolved
core/sys/windows/kernel32.odin Outdated Show resolved Hide resolved
@laytan laytan merged commit 3a23960 into odin-lang:master Jan 5, 2025
7 checks passed
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.

2 participants