Skip to content

Tentative implementation using golang and CGO bindings #13

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

Merged
merged 12 commits into from
Feb 28, 2023
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Feb 24, 2023

This is a tentative fix to bind dfu-util and libusb and make the dfu-discovery in go.

  • The build flags are added as #cgo directive in main.go
  • To allow compile with CGO we must copy dfu_util.c, dfuse_mem.c and quirks.c to root folder
  • Some glue code to bind struct dfu_if has been added as well
  • We use github.com/arduino/pluggable-discovery-protocol-handler/v2 to handle all pluggable discovery protocol

@cmaglie cmaglie self-assigned this Feb 24, 2023
@cmaglie cmaglie merged commit d9cafdf into master Feb 28, 2023
@cmaglie cmaglie deleted the go_inception branch February 28, 2023 17:20
@per1234 per1234 added type: imperfection Perceived defect in any part of project type: enhancement Proposed improvement topic: code Related to content of the project itself labels Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement type: imperfection Perceived defect in any part of project
Projects
None yet
3 participants