Skip to content

Commit aa04732

Browse files
committed
[Nuvoton] Exclude USB UART from testing
USB UART is dedicated to USB COM and so must exclude from FPGA CI testing.
1 parent b6759bc commit aa04732

File tree

5 files changed

+80
-0
lines changed

5 files changed

+80
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M2351/pinmap.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "mbed_assert.h"
1919
#include "pinmap.h"
2020
#include "PortNames.h"
21+
#include "PeripheralNames.h"
2122
#include "mbed_error.h"
2223
#include "partition_M2351.h"
2324
#include "hal_secure.h"
@@ -77,6 +78,21 @@ void pin_mode(PinName pin, PinMode mode)
7778
*/
7879
}
7980

81+
/* List of peripherals excluded from testing */
82+
const PeripheralList *pinmap_restricted_peripherals()
83+
{
84+
static const int perifs[] = {
85+
STDIO_UART // Dedicated to USB VCOM
86+
};
87+
88+
static const PeripheralList peripheral_list = {
89+
sizeof(perifs) / sizeof(perifs[0]),
90+
perifs
91+
};
92+
93+
return &peripheral_list;
94+
}
95+
8096
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
8197
__NONSECURE_ENTRY
8298
void pin_function_s(int32_t pin, int32_t data)

targets/TARGET_NUVOTON/TARGET_M451/pinmap.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "mbed_assert.h"
1818
#include "pinmap.h"
1919
#include "PortNames.h"
20+
#include "PeripheralNames.h"
2021
#include "mbed_error.h"
2122

2223
/**
@@ -90,3 +91,18 @@ void pin_mode(PinName pin, PinMode mode)
9091
* 2. PushPullOutput/PIN_INPUT
9192
*/
9293
}
94+
95+
/* List of peripherals excluded from testing */
96+
const PeripheralList *pinmap_restricted_peripherals()
97+
{
98+
static const int perifs[] = {
99+
STDIO_UART // Dedicated to USB VCOM
100+
};
101+
102+
static const PeripheralList peripheral_list = {
103+
sizeof(perifs) / sizeof(perifs[0]),
104+
perifs
105+
};
106+
107+
return &peripheral_list;
108+
}

targets/TARGET_NUVOTON/TARGET_M480/pinmap.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "mbed_assert.h"
1818
#include "pinmap.h"
1919
#include "PortNames.h"
20+
#include "PeripheralNames.h"
2021
#include "mbed_error.h"
2122

2223
/**
@@ -80,3 +81,18 @@ void pin_mode(PinName pin, PinMode mode)
8081
* 2. PushPullOutput/PIN_INPUT
8182
*/
8283
}
84+
85+
/* List of peripherals excluded from testing */
86+
const PeripheralList *pinmap_restricted_peripherals()
87+
{
88+
static const int perifs[] = {
89+
STDIO_UART // Dedicated to USB VCOM
90+
};
91+
92+
static const PeripheralList peripheral_list = {
93+
sizeof(perifs) / sizeof(perifs[0]),
94+
perifs
95+
};
96+
97+
return &peripheral_list;
98+
}

targets/TARGET_NUVOTON/TARGET_NANO100/pinmap.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "mbed_assert.h"
1818
#include "pinmap.h"
1919
#include "PortNames.h"
20+
#include "PeripheralNames.h"
2021
#include "mbed_error.h"
2122

2223
/**
@@ -76,3 +77,18 @@ void pin_mode(PinName pin, PinMode mode)
7677
* 2. PushPullOutput/PIN_INPUT
7778
*/
7879
}
80+
81+
/* List of peripherals excluded from testing */
82+
const PeripheralList *pinmap_restricted_peripherals()
83+
{
84+
static const int perifs[] = {
85+
STDIO_UART // Dedicated to USB VCOM
86+
};
87+
88+
static const PeripheralList peripheral_list = {
89+
sizeof(perifs) / sizeof(perifs[0]),
90+
perifs
91+
};
92+
93+
return &peripheral_list;
94+
}

targets/TARGET_NUVOTON/TARGET_NUC472/pinmap.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "mbed_assert.h"
1818
#include "pinmap.h"
1919
#include "PortNames.h"
20+
#include "PeripheralNames.h"
2021
#include "mbed_error.h"
2122

2223
/**
@@ -90,3 +91,18 @@ void pin_mode(PinName pin, PinMode mode)
9091
* 2. PushPullOutput/PIN_INPUT
9192
*/
9293
}
94+
95+
/* List of peripherals excluded from testing */
96+
const PeripheralList *pinmap_restricted_peripherals()
97+
{
98+
static const int perifs[] = {
99+
STDIO_UART // Dedicated to USB VCOM
100+
};
101+
102+
static const PeripheralList peripheral_list = {
103+
sizeof(perifs) / sizeof(perifs[0]),
104+
perifs
105+
};
106+
107+
return &peripheral_list;
108+
}

0 commit comments

Comments
 (0)