-
Notifications
You must be signed in to change notification settings - Fork 3k
Standard Pin Names #14381
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
Merged
Merged
Standard Pin Names #14381
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2ca4f81
Standard pin-name design documents
6124847
Clarify impact on changes
a6c213b
[STD-PIN] Replace STDIO_UART_TX by USBTX
jeromecoutant 23e3bb3
[STD-PIN] hal-tests-tests-pin_names-generic
jeromecoutant a4350f7
[STD-PIN] BUTTON and LED define
jeromecoutant 9d453cc
[STD-PIN] ARDUINO_UNO pins
jeromecoutant eca714c
[STD-PIN] update tests and components
jeromecoutant 5e50e3b
[STD-PIN] enable "ARDUINO_UNO" for B_L4S5I_IOT01A
jeromecoutant d514b78
[STD-PIN] hal-tests-tests-pin_names-arduino_uno
jeromecoutant 500ddf5
[STD-PIN] Updates after review
jeromecoutant 885cdef
Add standard pin-names validation script & tests
gpsimenos bb7d039
[STD-PIN] STM32L4: standardized pins
jeromecoutant eafaca3
[STD-PIN] STM32L5: standardized pins
jeromecoutant e602adb
[STD-PIN] STM32H7: standardized pins
jeromecoutant 4dfdb11
Move pinvalidate files
gpsimenos 8cf2ecc
Remove unused NUVOTON M2351 target files
gpsimenos ec7e00a
Add target markers to new PinNames.h files
gpsimenos 2322f1d
Remove unused NUCLEO_H743ZI target files
gpsimenos 87b587c
Remove design documents
gpsimenos 3af9624
Update PinNames markers
gpsimenos d239ef9
Rename USBTX/RX to CONSOLE_TX/RX
gpsimenos 21194f5
New lines
gpsimenos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
connectivity/drivers/ble/FEATURE_BLE/COMPONENT_BlueNRG_MS/mbed_lib.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
|
||
/** \addtogroup hal */ | ||
/** @{*/ | ||
/* mbed Microcontroller Library | ||
* Copyright (c) 2020 ARM Limited | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
#ifndef MBED_PIN_NAME_ALIASES_H | ||
#define MBED_PIN_NAME_ALIASES_H | ||
|
||
/* Aliases for legacy reasons. To be removed in the next Mbed OS version */ | ||
#if defined (CONSOLE_TX) && (CONSOLE_RX) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CONSOLE_TX and CONSOLE_RX are defined as enum, |
||
#define USBTX CONSOLE_TX | ||
#define USBRX CONSOLE_RX | ||
#else | ||
#define CONSOLE_TX USBTX | ||
#define CONSOLE_RX USBRX | ||
#endif | ||
|
||
#if defined (TARGET_FF_ARDUINO) || (TARGET_FF_ARDUINO_UNO) | ||
|
||
#ifdef TARGET_FF_ARDUINO_UNO | ||
|
||
#define A0 ARDUINO_UNO_A0 | ||
#define A1 ARDUINO_UNO_A1 | ||
#define A2 ARDUINO_UNO_A2 | ||
#define A3 ARDUINO_UNO_A3 | ||
#define A4 ARDUINO_UNO_A4 | ||
#define A5 ARDUINO_UNO_A5 | ||
#define D0 ARDUINO_UNO_D0 | ||
#define D1 ARDUINO_UNO_D1 | ||
#define D2 ARDUINO_UNO_D2 | ||
#define D3 ARDUINO_UNO_D3 | ||
#define D4 ARDUINO_UNO_D4 | ||
#define D5 ARDUINO_UNO_D5 | ||
#define D6 ARDUINO_UNO_D6 | ||
#define D7 ARDUINO_UNO_D7 | ||
#define D8 ARDUINO_UNO_D8 | ||
#define D9 ARDUINO_UNO_D9 | ||
#define D10 ARDUINO_UNO_D10 | ||
#define D11 ARDUINO_UNO_D11 | ||
#define D12 ARDUINO_UNO_D12 | ||
#define D13 ARDUINO_UNO_D13 | ||
#define D14 ARDUINO_UNO_D14 | ||
#define D15 ARDUINO_UNO_D15 | ||
|
||
#endif // TARGET_FF_ARDUINO_UNO | ||
|
||
#ifdef TARGET_FF_ARDUINO | ||
|
||
#warning ARDUINO form factor should not be used any more => use ARDUINO_UNO | ||
|
||
#define ARDUINO_UNO_A0 A0 | ||
#define ARDUINO_UNO_A1 A1 | ||
#define ARDUINO_UNO_A2 A2 | ||
#define ARDUINO_UNO_A3 A3 | ||
#define ARDUINO_UNO_A4 A4 | ||
#define ARDUINO_UNO_A5 A5 | ||
#define ARDUINO_UNO_D0 D0 | ||
#define ARDUINO_UNO_D1 D1 | ||
#define ARDUINO_UNO_D2 D2 | ||
#define ARDUINO_UNO_D3 D3 | ||
#define ARDUINO_UNO_D4 D4 | ||
#define ARDUINO_UNO_D5 D5 | ||
#define ARDUINO_UNO_D6 D6 | ||
#define ARDUINO_UNO_D7 D7 | ||
#define ARDUINO_UNO_D8 D8 | ||
#define ARDUINO_UNO_D9 D9 | ||
#define ARDUINO_UNO_D10 D10 | ||
#define ARDUINO_UNO_D11 D11 | ||
#define ARDUINO_UNO_D12 D12 | ||
#define ARDUINO_UNO_D13 D13 | ||
#define ARDUINO_UNO_D14 D14 | ||
#define ARDUINO_UNO_D15 D15 | ||
|
||
#endif // TARGET_FF_ARDUINO | ||
|
||
// Arduino Uno I2C signals aliases | ||
#define ARDUINO_UNO_I2C_SDA ARDUINO_UNO_D14 | ||
#define ARDUINO_UNO_I2C_SCL ARDUINO_UNO_D15 | ||
|
||
// Arduino Uno SPI signals aliases | ||
#define ARDUINO_UNO_SPI_CS ARDUINO_UNO_D10 | ||
#define ARDUINO_UNO_SPI_MOSI ARDUINO_UNO_D11 | ||
#define ARDUINO_UNO_SPI_MISO ARDUINO_UNO_D12 | ||
#define ARDUINO_UNO_SPI_SCK ARDUINO_UNO_D13 | ||
|
||
// Arduino Uno UART signals aliases | ||
#define ARDUINO_UNO_UART_TX ARDUINO_UNO_D1 | ||
#define ARDUINO_UNO_UART_RX ARDUINO_UNO_D0 | ||
|
||
#endif // (TARGET_FF_ARDUINO) || (TARGET_FF_ARDUINO_UNO) | ||
|
||
#endif // MBED_PIN_NAME_ALIASES_H | ||
|
||
/** @}*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.