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
Lingkai Dong 2021-07-20 12:53:25 +01:00
parent dca2aa79a0
commit 578843067b
1 changed files with 7 additions and 0 deletions

View File

@ -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;