diff --git a/drivers/docs/serial/serial.md b/drivers/docs/serial/serial.md index 8d4e9c2..ccce684 100644 --- a/drivers/docs/serial/serial.md +++ b/drivers/docs/serial/serial.md @@ -232,7 +232,7 @@ puts("Hello"); ``` ```C -BufferedSerial pc(USBTX, USBRX); +BufferedSerial pc(CONSOLE_TX, CONSOLE_RX); pc.write("Hello", 6); ``` diff --git a/features/frameworks/greentea-client/source/greentea_test_env.cpp b/features/frameworks/greentea-client/source/greentea_test_env.cpp index cda381f..3d70610 100644 --- a/features/frameworks/greentea-client/source/greentea_test_env.cpp +++ b/features/frameworks/greentea-client/source/greentea_test_env.cpp @@ -284,7 +284,7 @@ * \brief Encapsulate and send key-value message from DUT to host * * This function uses underlying functions to write directly - * to the serial port, (USBTX). This allows KVs to be used + * to the serial port, (CONSOLE_TX). This allows KVs to be used * from within interrupt context. * * \param key Message key (message/event name) @@ -305,7 +305,7 @@ * \brief Encapsulate and send key-value message from DUT to host * * This function uses underlying functions to write directly - * to the serial port, (USBTX). This allows KVs to be used + * to the serial port, (CONSOLE_TX). This allows KVs to be used * from within interrupt context. * Last value is an integer to avoid integer to string conversion * made by the user. @@ -328,7 +328,7 @@ * \brief Encapsulate and send key-value-value message from DUT to host * * This function uses underlying functions to write directly - * to the serial port, (USBTX). This allows KVs to be used + * to the serial port, (CONSOLE_TX). This allows KVs to be used * from within interrupt context. * Last value is an integer to avoid integer to string conversion * made by the user. @@ -355,7 +355,7 @@ * \brief Encapsulate and send key-value-value-value message from DUT to host * * This function uses underlying functions to write directly - * to the serial port, (USBTX). This allows KVs to be used + * to the serial port, (CONSOLE_TX). This allows KVs to be used * from within interrupt context. * Last 2 values are integers to avoid integer to string conversion * made by the user. @@ -389,7 +389,7 @@ * \brief Encapsulate and send key-value-value message from DUT to host * * This function uses underlying functions to write directly - * to the serial port, (USBTX). This allows key-value-value to be used + * to the serial port, (CONSOLE_TX). This allows key-value-value to be used * from within interrupt context. * Both values are integers to avoid integer to string conversion * made by the user.