The Serial HAL tests ensure driver conformance to defined behavior. More...
Functions | |
void | fpga_uart_init_free_test (PinName tx, PinName rx, PinName cts=NC, PinName rts=NC) |
Test that the uart can be initialized/de-initialized using all possible uart pins (flow control enabled). More... | |
void | fpga_uart_init_free_test_no_fc (PinName tx, PinName rx) |
Test that the uart can be initialized/de-initialized using all possible uart pins (flow control disabled). More... | |
void | fpga_uart_test_common (PinName tx, PinName rx, PinName cts=NC, PinName rts=NC) |
Test that the uart transfer can be performed in various configurations (flow control enabled). More... | |
void | fpga_uart_test_common_no_fc (PinName tx, PinName rx) |
Test that the uart transfer can be performed in various configurations (flow control disabled). More... | |
The Serial HAL tests ensure driver conformance to defined behavior.
To run the Serial hal tests use the command:
mbed test -t <toolchain> -m <target> -n tests-mbed_hal_fpga_ci_test_shield-uart
void fpga_uart_init_free_test | ( | PinName | tx, |
PinName | rx, | ||
PinName | cts = NC , |
||
PinName | rts = NC |
||
) |
Test that the uart can be initialized/de-initialized using all possible uart pins (flow control enabled).
Given board provides uart support with flow control. When uart is initialized (and then de-initialized) using valid set of uart pins. Then the operation is successfull.
void fpga_uart_init_free_test_no_fc | ( | PinName | tx, |
PinName | rx | ||
) |
Test that the uart can be initialized/de-initialized using all possible uart pins (flow control disabled).
Given board provides uart support without flow control. When uart is initialized (and then de-initialized) using valid set of uart pins. Then the operation is successfull.
void fpga_uart_test_common | ( | PinName | tx, |
PinName | rx, | ||
PinName | cts = NC , |
||
PinName | rts = NC |
||
) |
Test that the uart transfer can be performed in various configurations (flow control enabled).
Given board provides uart support with flow control. When uart transmission is performed using different settings. Then data is successfully transfered.
void fpga_uart_test_common_no_fc | ( | PinName | tx, |
PinName | rx | ||
) |
Test that the uart transfer can be performed in various configurations (flow control disabled).
Given board provides uart support without flow control. When uart transmission is performed using different settings. Then data is successfully transfered.