Mistake on this page?
Report an issue in GitHub or email us
Functions

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...
 

Detailed Description

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

Function Documentation

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.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.