-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add legacy I2C/SPI pin aliases #14617
Conversation
@gpsimenos, thank you for your changes. |
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.
This is ok as short term fix although we'll need to set the defaults accordingly.
Note, not all boards have an Arduino Uno connector.
@ARMmbed/mbed-os-maintainers can you please progress with CI and merge soon? |
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.
CI was in maintenance mode for day and a half, we are ready to get CI queue full now
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
This pull request has automatically been marked as stale because it has had no recent activity. @gpsimenos, please carry out any necessary work to get the changes merged. Thank you for your contributions. |
@gpsimenos Failures look related, please review |
@@ -86,12 +86,35 @@ | |||
#define ARDUINO_UNO_I2C_SDA ARDUINO_UNO_D14 | |||
#define ARDUINO_UNO_I2C_SCL ARDUINO_UNO_D15 | |||
|
|||
// Legacy I2C aliases |
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.
This has to be protected by
#ifdef TARGET_FF_ARDUINO_UNO
as targets which are not compliant with pin standard are already defining I2C_SDA in enum
@gpsimenos @MarceloSalazar |
Is it possible to add the same protection for each legacy alias: As a customer could locally defined his own A0 pin |
Pull request has been modified.
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.
Let's restart CI ?
CI restarted |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
This PR adds definitions for the legacy I2C/SPI pin names to ensure backwards compatibility until all PinNames.h files are updated.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@jeromecoutant @0xc0170