Skip to content

Commit 34212a8

Browse files
committed
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.
1 parent b89f7d1 commit 34212a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hal/tests/UNITTESTS/doubles/PinNames.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
/* MBED TARGET LIST: UNITTESTS */
19+
1820
#ifndef MBED_PINNAMES_H
1921
#define MBED_PINNAMES_H
2022

@@ -30,6 +32,11 @@ typedef enum {
3032
typedef enum {
3133
PTC0 = 0,
3234
PTC1 = 1,
35+
36+
// USB Pins
37+
CONSOLE_TX = 2,
38+
CONSOLE_RX = 3,
39+
3340
NC = (int)0xFFFFFFFF
3441
} PinName;
3542

0 commit comments

Comments
 (0)