-
Notifications
You must be signed in to change notification settings - Fork 137
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
ninafw: allow custom config #224
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @bgould just is missing machine.NINA_UART
https://github.com/tinygo-org/bluetooth/blob/dev/adapter_ninafw.go#L53
b65e00d
to
2838920
Compare
2838920
to
731e738
Compare
731e738
to
f100ba6
Compare
@deadprogram This is rebased against the latest from the dev branch and ready for feedback/merging |
@@ -11,6 +11,29 @@ import ( | |||
|
|||
const maxConnections = 1 | |||
|
|||
// NINAConfig encapsulates the hardware options for the NINA firmware | |||
type NINAConfig struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest name this HCIConfig
so it can be more easily used for non-NINA HCI controllers.
@@ -0,0 +1,22 @@ | |||
//go:build ninafw && ninafw_featherwing_init |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ninafw_featherwing_init
can just be featherwing
.
@@ -0,0 +1,22 @@ | |||
//go:build ninafw && ninafw_machine_init |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about name ninafw_machine_init
instead to ninafw_onboard
?
@bgould I made a few comments. What I have in mind is to create a |
What's the status of this PR? This looks like a good idea to me (and I agree with the suggestions of @deadprogram). |
Refactoring ninafw adapter to allow for settings and pin configurations separate from the
machine
package.