From bd5bbec7154a68aa0e40dd5b46897cabdbd29fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 6 Aug 2015 18:10:17 +0200 Subject: [PATCH] Use consistent baud rate across examples --- yotta/data/example-authcrypt/README.md | 2 +- yotta/data/example-authcrypt/main.cpp | 4 ++++ yotta/data/example-benchmark/README.md | 2 +- yotta/data/example-benchmark/main.cpp | 4 ++++ yotta/data/example-hashing/README.md | 2 +- yotta/data/example-hashing/main.cpp | 4 ++++ yotta/data/example-selftest/README.md | 2 +- yotta/data/example-selftest/main.cpp | 4 ++++ 8 files changed, 20 insertions(+), 4 deletions(-) diff --git a/yotta/data/example-authcrypt/README.md b/yotta/data/example-authcrypt/README.md index 8bb847069..55186d19d 100644 --- a/yotta/data/example-authcrypt/README.md +++ b/yotta/data/example-authcrypt/README.md @@ -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. diff --git a/yotta/data/example-authcrypt/main.cpp b/yotta/data/example-authcrypt/main.cpp index 0c7b9b14b..478293ca6 100644 --- a/yotta/data/example-authcrypt/main.cpp +++ b/yotta/data/example-authcrypt/main.cpp @@ -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); diff --git a/yotta/data/example-benchmark/README.md b/yotta/data/example-benchmark/README.md index e0800ebdb..dfdc965db 100644 --- a/yotta/data/example-benchmark/README.md +++ b/yotta/data/example-benchmark/README.md @@ -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-benchmark.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. diff --git a/yotta/data/example-benchmark/main.cpp b/yotta/data/example-benchmark/main.cpp index fabaef9db..c61c63988 100644 --- a/yotta/data/example-benchmark/main.cpp +++ b/yotta/data/example-benchmark/main.cpp @@ -921,6 +921,10 @@ int benchmark( int argc, char *argv[] ) #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(150); MBED_HOSTTEST_SELECT(default); MBED_HOSTTEST_DESCRIPTION(mbed TLS benchmark program); diff --git a/yotta/data/example-hashing/README.md b/yotta/data/example-hashing/README.md index 703d5b49b..ed941cfcc 100644 --- a/yotta/data/example-hashing/README.md +++ b/yotta/data/example-hashing/README.md @@ -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-hashing.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. diff --git a/yotta/data/example-hashing/main.cpp b/yotta/data/example-hashing/main.cpp index 8eb3c1b05..5ff4c6af1 100644 --- a/yotta/data/example-hashing/main.cpp +++ b/yotta/data/example-hashing/main.cpp @@ -141,6 +141,10 @@ 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 on hashing); diff --git a/yotta/data/example-selftest/README.md b/yotta/data/example-selftest/README.md index c5967a2c0..0ded4041c 100644 --- a/yotta/data/example-selftest/README.md +++ b/yotta/data/example-selftest/README.md @@ -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-selftest.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. diff --git a/yotta/data/example-selftest/main.cpp b/yotta/data/example-selftest/main.cpp index 7c2310130..3124af202 100644 --- a/yotta/data/example-selftest/main.cpp +++ b/yotta/data/example-selftest/main.cpp @@ -232,6 +232,10 @@ int selftest( int argc, char *argv[] ) #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(40); MBED_HOSTTEST_SELECT(default); MBED_HOSTTEST_DESCRIPTION(mbed TLS selftest program);