Skip to content

Commit 8600157

Browse files
committed
Replace USBTX/RX
1 parent 3e63fd9 commit 8600157

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/docs/serial/serial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Other alternatives to printing to stdout are by calling `puts` or `write`.
232232
puts("Hello");
233233
```
234234
```C
235-
BufferedSerial pc(USBTX, USBRX);
235+
BufferedSerial pc(CONSOLE_TX, CONSOLE_RX);
236236
pc.write("Hello", 6);
237237
```
238238

features/frameworks/greentea-client/source/greentea_test_env.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static void greentea_write_int(const int val)
284284
* \brief Encapsulate and send key-value message from DUT to host
285285
*
286286
* This function uses underlying functions to write directly
287-
* to the serial port, (USBTX). This allows KVs to be used
287+
* to the serial port, (CONSOLE_TX). This allows KVs to be used
288288
* from within interrupt context.
289289
*
290290
* \param key Message key (message/event name)
@@ -305,7 +305,7 @@ extern "C" void greentea_send_kv(const char *key, const char *val) {
305305
* \brief Encapsulate and send key-value message from DUT to host
306306
*
307307
* This function uses underlying functions to write directly
308-
* to the serial port, (USBTX). This allows KVs to be used
308+
* to the serial port, (CONSOLE_TX). This allows KVs to be used
309309
* from within interrupt context.
310310
* Last value is an integer to avoid integer to string conversion
311311
* made by the user.
@@ -328,7 +328,7 @@ void greentea_send_kv(const char *key, const int val) {
328328
* \brief Encapsulate and send key-value-value message from DUT to host
329329
*
330330
* This function uses underlying functions to write directly
331-
* to the serial port, (USBTX). This allows KVs to be used
331+
* to the serial port, (CONSOLE_TX). This allows KVs to be used
332332
* from within interrupt context.
333333
* Last value is an integer to avoid integer to string conversion
334334
* made by the user.
@@ -355,7 +355,7 @@ void greentea_send_kv(const char *key, const char *val, const int result) {
355355
* \brief Encapsulate and send key-value-value-value message from DUT to host
356356
*
357357
* This function uses underlying functions to write directly
358-
* to the serial port, (USBTX). This allows KVs to be used
358+
* to the serial port, (CONSOLE_TX). This allows KVs to be used
359359
* from within interrupt context.
360360
* Last 2 values are integers to avoid integer to string conversion
361361
* made by the user.
@@ -389,7 +389,7 @@ void greentea_send_kv(const char *key, const char *val, const int passes, const
389389
* \brief Encapsulate and send key-value-value message from DUT to host
390390
*
391391
* This function uses underlying functions to write directly
392-
* to the serial port, (USBTX). This allows key-value-value to be used
392+
* to the serial port, (CONSOLE_TX). This allows key-value-value to be used
393393
* from within interrupt context.
394394
* Both values are integers to avoid integer to string conversion
395395
* made by the user.

0 commit comments

Comments
 (0)