-
Notifications
You must be signed in to change notification settings - Fork 3k
Eth: STM32: Updating documentation on mbed_otp_mac_address() #14838
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
@jeromecoutant For your review. |
@katherrafi, thank you for your changes. |
targets/TARGET_STM/README.md
Outdated
can be changed. | ||
Because as this is defined as weak in mbed-os/connectivity/drivers/emac/TARGET_STM/stm32xx_emac.cpp | ||
``` | ||
__weak uint8_t mbed_otp_mac_address(char *mac). |
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.
as this is for Mbed OS, lets use MBED_WEAK
instead
__weak uint8_t mbed_otp_mac_address(char *mac). | |
#include "platform/mbed_toolchain.h" | |
MBED_WEAK uint8_t mbed_otp_mac_address(char *mac). |
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.
@0xc0170 Suggested changes are updated.
5d19e61
to
1e92540
Compare
Because as this is defined as weak in mbed-os/connectivity/drivers/emac/TARGET_STM/stm32xx_emac.cpp | ||
``` | ||
#include "platform/mbed_toolchain.h" | ||
MBED_WEAK uint8_t mbed_otp_mac_address(char *mac). |
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.
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.
@jeromecoutant :
In the stm32xx_emac.cpp file all "__weak" are replaced with MBED_WEAK.
1e92540
to
a9e9564
Compare
This commit updates the documentation on how to use mbed_otp_mac_address() to modify the default MAC address to custom Mac address. Signed-off-by: Kather Rafi Ibrahim <[email protected]>
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
This commit updates the documentation on how to use
mbed_otp_mac_address() to modify the default MAC address to custom
Mac address.
Signed-off-by: Kather Rafi Ibrahim [email protected]
Summary of changes
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers