Skip to content

Commit 8bb7ce4

Browse files
author
Amanda Butler
authored
Merge pull request #634 from yennster/patch-1
Move Serial example 3 to RawSerial
2 parents 24e40de + ce49c0a commit 8bb7ce4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/reference/api/drivers/RawSerial.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ Write a message to a device at a baud rate of 19200.
3636

3737
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/RawSerial_ex_1/)](https://os.mbed.com/teams/mbed_example/code/RawSerial_ex_1/file/6a0d9cb21969/main.cpp)
3838

39+
#### Example two
40+
41+
Attach a function to call during the generation of serial interrupts. This function defaults to interrupt on an RX pin.
42+
43+
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/RawSerial_ex_2/)](https://os.mbed.com/teams/mbed_example/code/RawSerial_ex_2/file/3ad999bfc3c4/main.cpp/)
44+
3945
#### Mbed OS example
4046

4147
Common use cases for RawSerial are IRQ heavy UART operations, such as the [ATParser](https://github.com/ARMmbed/ATParser/blob/3209400df676cbf0183a5894f648c71727602d30/BufferedSerial/BufferedSerial.cpp#L29) in the ESP8266 driver. This driver uses UART on user supplied pins to communicate with the offchip ESP8266 module.

docs/reference/api/drivers/Serial.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ Provide a serial pass-through between the PC and an external UART.
3939

4040
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/Serial_ex_2/)](https://os.mbed.com/teams/mbed_example/code/Serial_ex_2/file/8d318218bac1/main.cpp)
4141

42-
#### Example three
43-
44-
Attach a function to call during the generation of serial interrupts. This function defaults to interrupt on an RX pin.
45-
46-
[![View code](https://www.mbed.com/embed/?url=https://os.mbed.com/teams/mbed_example/code/Serial_ex_3/)](https://os.mbed.com/teams/mbed_example/code/Serial_ex_3/file/4ab47f33a1ae/main.cpp)
47-
4842
### Related content
4943

5044
- [Serial](/docs/development/introduction/glossary.html) glossary entry.

0 commit comments

Comments
 (0)