Skip to content

Add support for Win32 (serial tool only) #3

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

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

Conversation

elliott-bfs
Copy link

  • Added support for Win32 build in CMake build configuration.
  • Added CMake flags for optionally compiling tools
  • Implemented Win32 serial mac

elliott-bfs and others added 2 commits May 27, 2025 13:50
- Added serial_mac_win.c
- Added CMake options for enabling tools
- Added preprocessor flags for tools
- Replace stpcpy with C-standard sprintf
- Added platform-independent endian.h
option(WITH_TOOL_NETWORK "Build with Network tools" ON)
option(WITH_TOOL_SERIAL "Build with Serial tools" ON)

if (WITH_TOOL_I2C)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could be more specific with the tool types in case later there are other SPI/I2C/Network tools. I would suggest to name them e.g. LINUX_SPI_SUBSYSTEM, LINUX_I2C_SUBSYSTEM, LINUX_NETWORK.

@crypto-lars
Copy link
Collaborator

I have pushed some commits that I had lying around so there is a small merge conflict now that needs resolving.

FYI there is also pymdfu https://github.com/microchip-pic-avr-tools/pymdfu that can do the Windows serial port.

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