-
Notifications
You must be signed in to change notification settings - Fork 3k
DISCO_L072CZ_LRWAN1: enable LORA by default #14049
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
Conversation
FYI @ludoch-stm |
@jeromecoutant, thank you for your changes. |
76a1cd6
to
f693871
Compare
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.
Thanks @jeromecoutant. It is a peculiar way of overriding the lora.radio
parameter. Is there any side effect when the user attempt to override this value and one of the driver provides a value for MBED_CONF_LORA_RADIO
?
@@ -1,6 +1,10 @@ | |||
{ | |||
"name": "SX126X-lora-driver", | |||
"config": { | |||
"radio": { |
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.
If I understand this correctly this provides the override of "lora.radio"
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.
yes, I don't find any clean way to override some config value defined in another lib....
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.
That's a longstanding issue 😞 .
@@ -5,6 +5,9 @@ | |||
"help": "LoRa PHY region: EU868, AS923, AU915, CN470, CN779, EU433, IN865, KR920, US915", | |||
"value": "EU868" | |||
}, | |||
"radio": { | |||
"help": "value set in radio driver : SX126X, SX1272, SX1276" |
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.
What happen if a value is provided in mbed_app.json
?
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.
It will not be used as define will be MBED_CONF_APP_xxx
Could we start CI ? |
@@ -24,6 +28,17 @@ | |||
"standby-mode": { | |||
"help": "Default: STDBY_RC = 0, STDBY_XOSC = 1", | |||
"value": 0 | |||
} | |||
}, | |||
"spi-mosi": { "value": "NC" }, |
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.
should this follow the style: value on separate line with NC ? same as the rest above to be consistent (I understand it's not much value but consistency is better.
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.
Done
f693871
to
f17ce83
Compare
@0xc0170 could you re-review please,I'll start CI in the meantime |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
"dio5": { | ||
"value": "NC" | ||
}, | ||
"rf-switch-ctl1": { "value": "NC" }, |
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.
same style for the rest also (line here and lines below)
"dio5": { | ||
"value": "NC" | ||
}, | ||
"rf-switch-ctl1": { "value": "NC" }, |
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.
also update here needed
@jeromecoutant please update the rest of the changes, LGTM once updated |
f17ce83
to
e0217ad
Compare
Done |
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.
@pan- happy with the changes?
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
DISCO_L072CZ_LRWAN1 target includes a SX1276 transceiver,
so LoRaWan could be enabled in default configuration
During this development, I changed the way of configuring pins for each Lora radio driver.
Before, it was up to application to configure all the pins for each radio,
now pins are configured in the driver, and application just has to override to needed ones.
Greentea test is also updated
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers