Nothing fancy, just a demonstration of the using the UART interrupt service routine. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
19 lines
851 B
Plaintext
19 lines
851 B
Plaintext
------------------------------------------------------------------------------
|
|
README
|
|
------------------------------------------------------------------------------
|
|
|
|
This example demonstrates the ease of setting up the UART with libopencm3, and
|
|
using UART interrupts. UART echo is achieved by echoing back received characters
|
|
from within the interrupt service routine. This has the advantage over using
|
|
blocking reads and writes that the main program loop is freed for other tasks.
|
|
|
|
The UART is set up as 921600-8N1.
|
|
|
|
PA0 is the Rx pin, and PA1 is the Tx pin (from the LM4F perspective). These
|
|
pins are connected to the CDCACM interface on the debug chip, so no hardware is
|
|
necessary to test this example. Just connect the debug USB cable and use a
|
|
terminal program to open the ACM port with 921600-8N1.
|
|
|
|
For example:
|
|
$ picocom /dev/ttyACM0 -b921600
|