mirror of https://github.com/ARMmbed/mbed-os.git
Unit tests: Fix pin validation failure
The test script pinvalidate.py requires the following which are missing in the unit test stub PinName.h: * A comment "MBED TARGET LIST" * `CONSOLE_TX` and `CONSOLE_RX` in the `PinName` enum This commit adds them.pull/14929/head
parent
dca2aa79a0
commit
578843067b
|
@ -15,6 +15,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* MBED TARGET LIST: UNITTESTS */
|
||||
|
||||
#ifndef MBED_PINNAMES_H
|
||||
#define MBED_PINNAMES_H
|
||||
|
||||
|
@ -30,6 +32,11 @@ typedef enum {
|
|||
typedef enum {
|
||||
PTC0 = 0,
|
||||
PTC1 = 1,
|
||||
|
||||
// USB Pins
|
||||
CONSOLE_TX = 2,
|
||||
CONSOLE_RX = 3,
|
||||
|
||||
NC = (int)0xFFFFFFFF
|
||||
} PinName;
|
||||
|
||||
|
|
Loading…
Reference in New Issue