mirror of https://github.com/ARMmbed/mbed-os.git
FPGA UART test: disable 9 bits test for K64F
parent
ba94adbf65
commit
64f9a7a8ba
|
|
@ -14,7 +14,7 @@
|
|||
"K64F": {
|
||||
"target.macros_add": [
|
||||
"UART_7BITS_PARITY_NONE_NOT_SUPPORTED",
|
||||
"UART_9BITS_PARITY_NOT_SUPPORTED"
|
||||
"UART_9BITS_NOT_SUPPORTED"
|
||||
]
|
||||
},
|
||||
"STM": {
|
||||
|
|
|
|||
|
|
@ -93,6 +93,13 @@ static void uart_test_common(int baudrate, int data_bits, SerialParity parity, i
|
|||
// Only 7, 8 & 9 data bits.
|
||||
MBED_ASSERT(data_bits >= 7 && data_bits <= 9);
|
||||
|
||||
#if defined(UART_9BITS_NOT_SUPPORTED)
|
||||
if (data_bits == 9) {
|
||||
utest_printf(" UART_9BITS_NOT_SUPPORTED set ... ");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(UART_9BITS_PARITY_NOT_SUPPORTED)
|
||||
if ((data_bits == 9) && (parity != ParityNone)) {
|
||||
utest_printf(" UART_9BITS_PARITY_NOT_SUPPORTED set ... ");
|
||||
|
|
|
|||
Loading…
Reference in New Issue