Skip to content

Commit

Permalink
Unit tests: Fix pin validation failure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LDong-Arm committed Jul 20, 2021
1 parent b9badce commit 6f349d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hal/tests/UNITTESTS/doubles/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

/* MBED TARGET LIST: UNITTESTS */

#ifndef MBED_PINNAMES_H
#define MBED_PINNAMES_H

Expand All @@ -30,6 +32,11 @@ typedef enum {
typedef enum {
PTC0 = 0,
PTC1 = 1,

// USB Pins
CONSOLE_TX = 2,
CONSOLE_RX = 3

NC = (int)0xFFFFFFFF
} PinName;

Expand Down

0 comments on commit 6f349d6

Please sign in to comment.