mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Use consistent baud rate across examples
This commit is contained in:
@ -44,7 +44,7 @@ To build and run this example the requirements below are necessary:
|
||||
|
||||
6. Copy `build/frdm-k64f-gcc/test/mbedtls-test-example-authcrypt.bin` to your mbed board and wait until the LED next to the USB port stops blinking.
|
||||
|
||||
7. Start the serial terminal emulator and connect to the virtual serial port presented by FRDM-K64F. For settings, use 9600 baud, 8N1, no flow control.
|
||||
7. Start the serial terminal emulator and connect to the virtual serial port presented by FRDM-K64F. For settings, use 115200 baud, 8N1, no flow control. **Warning:** for this example, the baud rate is not the default 9600, it is 115200.
|
||||
|
||||
8. Press the reset button on the board.
|
||||
|
||||
|
@ -161,6 +161,10 @@ static int example(void)
|
||||
#include "mbed/test_env.h"
|
||||
|
||||
int main() {
|
||||
/* Use 115200 bps for consistency with other examples */
|
||||
Serial pc(USBTX, USBRX);
|
||||
pc.baud(115200);
|
||||
|
||||
MBED_HOSTTEST_TIMEOUT(10);
|
||||
MBED_HOSTTEST_SELECT(default);
|
||||
MBED_HOSTTEST_DESCRIPTION(mbed TLS example authcrypt);
|
||||
|
Reference in New Issue
Block a user