-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix MeshInterface::get_default_instance() #7778
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
@kjbracey-arm @mikaleppanen Please review. |
targets/targets.json
Outdated
@@ -582,10 +582,13 @@ | |||
"macros": ["CPU_MKW24D512VHA5", "FSL_RTOS_MBED"], | |||
"inherits": ["Target"], | |||
"detect_code": ["0250"], | |||
"device_has": ["USTICKER", "LPTICKER", "RTC", "ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG", "FLASH"], | |||
"device_has": ["USTICKER", "LPTICKER", "RTC", "ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG", "FLASH", "802_15_4_PHY", "MCR20A"], |
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.
On this, I think (but am not totally certain) that "MCR20A" should be in "extra_labels". That seems to be where specific parts are named, whereas "device_has" is for general technologies.
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.
Hmm.. extra_labels
means that it would pick up folder like TARGET_MCR20A
but it would not be available as a build time flag.
device_has
is a build time macro, but not visible in the mbed_config.h
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.
@sg- suggests that this - driver providing an implementation - is the intended use of the new component
, and that should work both ways. Worth a try?
a60b9d7
to
3d1ec65
Compare
Removed the DEVICE_MCR20A flag and rebased on top of master |
For KW24D to be fully usable, it requires #7814 |
This is targeted to 5.10.0-rc1 |
/morph build |
Build : FAILUREBuild number : 2889 |
Please review KW24D build failures |
3d1ec65
to
ae53834
Compare
Rebased on top of master and dropped the KW24D changes. |
/morph build |
@SeppoTakalo Please take a look at the single linker failure. |
@SeppoTakalo If this impacts NCS36510, then targets providing SL_RAIL most probably need a similar update. Please don't leave us behind. |
2ad903e
to
4989650
Compare
My bad, the previous commit did not disable NCS36510 builds. Now "should" build with IAR as well
It skips the build as it is supposed to. |
@stevew817 Good point, So targets that use 802.15.4 as a default, should provide
in the |
/morph build |
Build : SUCCESSBuild number : 2963 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 2579 |
Exporter node got stuck, had to abort. /morph export-build |
Exporter Build : SUCCESSBuild number : 2580 |
Test : SUCCESSBuild number : 2715 |
TB_SENSE_12 would have been left behind by the changes in ARMmbed#7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
TB_SENSE_12 would have been left behind by the changes in ARMmbed#7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
TB_SENSE_12 would have been left behind by the changes in ARMmbed#7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
…terface Hotfix for PR #7778 on Silicon Labs targets
TB_SENSE_12 would have been left behind by the changes in #7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
TB_SENSE_12 would have been left behind by the changes in #7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
TB_SENSE_12 would have been left behind by the changes in #7778. This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
Description
Fix
MeshInterface::get_default_instance()
Both 6LoWPAN and Thread interfaces were returning and referencing wrong types. Pointers instead of reference, and objects where pointer should have been.
Also enable targets like MCR20A and NCS36510 to provide the default Nanostack RF driver.
Tested quickly on K64F+Atmel shield, K64F+MCR20 shield, MCR20A.
Requires following PRs to be usable:
Pull request type