[Silicon Labs] Fix regression towards older platforms #1504
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The fix to have serial_api deal with NC pins for either RX or TX was only partly replicated into the code for older platforms, causing MBED_37 (serial_nc_rx) to fail. This has now been fixed by condensing code so that there is less room for copy-paste failures.
Test report after fix:
Test summary:
+--------+-----------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| Result | Target | Toolchain | Test ID | Test Description | Elapsed Time (sec) | Timeout (sec) | Loops |
+--------+-----------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A7 | InterruptIn | 11.55 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | DTCT_1 | Simple detect test | 3.52 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | EXAMPLE_1 | /dev/null | 6.69 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A5 | DigitalIn DigitalOut | 4.4 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A9 | Serial Echo at 115200 | 4.79 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_10 | Hello World | 3.04 | 5 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_11 | Ticker Int | 14.39 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_12 | C++ | 4.82 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_16 | RTC | 7.7 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_2 | stdio | 3.6 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A21 | Call function before main (mbed_main) | 4.5 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_23 | Ticker Int us | 14.04 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_24 | Timeout Int us | 14.43 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_25 | Time us | 14.21 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_26 | Integer constant division | 4.51 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A6 | DigitalInOut | 4.39 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_BUSOUT | BusOut | 4.39 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_34 | Ticker Two callbacks | 14.06 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_37 | Serial NC RX | 9.36 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_38 | Serial NC TX | 8.86 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A1 | Basic | 3.99 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A10 | PortOut PortIn | 4.43 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | GCC_ARM | MBED_A11 | PortInOut | 4.44 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A7 | InterruptIn | 12.09 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | DTCT_1 | Simple detect test | 3.76 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | EXAMPLE_1 | /dev/null | 7.14 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A5 | DigitalIn DigitalOut | 4.8 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A9 | Serial Echo at 115200 | 5.05 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_10 | Hello World | 3.84 | 5 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_11 | Ticker Int | 14.61 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_12 | C++ | 4.7 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_16 | RTC | 8.06 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_2 | stdio | 3.85 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A21 | Call function before main (mbed_main) | 4.61 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_23 | Ticker Int us | 14.59 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_24 | Timeout Int us | 15.01 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_25 | Time us | 14.78 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_26 | Integer constant division | 4.62 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A6 | DigitalInOut | 4.6 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_BUSOUT | BusOut | 5.09 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_34 | Ticker Two callbacks | 14.58 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_37 | Serial NC RX | 9.64 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_38 | Serial NC TX | 9.12 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A1 | Basic | 4.65 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A10 | PortOut PortIn | 4.8 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | ARM | MBED_A11 | PortInOut | 4.6 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A7 | InterruptIn | 11.5 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | DTCT_1 | Simple detect test | 3.54 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | EXAMPLE_1 | /dev/null | 6.49 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A5 | DigitalIn DigitalOut | 4.4 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A9 | Serial Echo at 115200 | 4.53 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_10 | Hello World | 3.06 | 5 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_11 | Ticker Int | 14.4 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_12 | C++ | 4.45 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_16 | RTC | 7.44 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_2 | stdio | 3.58 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A21 | Call function before main (mbed_main) | 4.41 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_23 | Ticker Int us | 14.46 | 15 | 3/3 |
| FAIL | EFM32GG_STK3700 | uARM | MBED_24 | Timeout Int us | 18.91 | 15 | 0/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_25 | Time us | 14.84 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_26 | Integer constant division | 4.46 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A6 | DigitalInOut | 4.4 | 10 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_BUSOUT | BusOut | 4.39 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_34 | Ticker Two callbacks | 14.44 | 15 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_37 | Serial NC RX | 8.96 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_38 | Serial NC TX | 8.56 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A1 | Basic | 4.44 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A10 | PortOut PortIn | 4.39 | 20 | 3/3 |
| OK | EFM32GG_STK3700 | uARM | MBED_A11 | PortInOut | 4.52 | 20 | 3/3 |
+--------+-----------------+-----------+-------------+---------------------------------------+--------------------+---------------+-------+
Result: 1 FAIL / 68 OK
Shuffle Seed: 0.5012331302
Completed in 2090.07 sec