change approach, too much m4
This commit is contained in:
@ -1,18 +1,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Projects - just for fun</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
define(`TITLE', `Teensy meets "not so standard" UART configuration')
|
||||
define(`DATE', `2014-03-11')
|
||||
define(`CONTENT', `
|
||||
The people at <a href="https://www.pjrc.com/teensy/index.html" title="https://www.pjrc.com/teensy/index.html" target="_blank">https://www.pjrc.com/teensy/index.html</a> did a really good job with the Arduino integration <a href="https://www.pjrc.com/teensy/teensyduino.html" title="https://www.pjrc.com/teensy/teensyduino.html" target="_blank">Teensyduino</a>. Thank you very much indeed.
|
||||
|
||||
Unfortunately they missed a feature which has been integrated in the Arduino library sometimes between version 1.0.5 and 1.5.2, dont know when exactly: advanced UART configuration.
|
||||
Unfortunately they missed a feature which has been integrated in the Arduino library sometimes between version 1.0.5 and 1.5.2, don'`t know when exactly: advanced UART configuration.
|
||||
|
||||
In the documentation of <a href="http://arduino.cc/en/Serial/Begin" target="_blank"><code>Serial.begin(...)</code></a> you see the option to give a <code>config</code> argument, where in particular you can configure the frame length, the parity and the number of stop bits.
|
||||
|
||||
@ -38,8 +29,4 @@ Find the documentation for the <code>UARTx_C1</code> register on page pp. 1055-1
|
||||
Note: it is not enough to enable parity (setting the bit <code>UART_C1_PE</code>, you also need to increase the frame length to 9 bit by setting bit <code>UART_C1_M</code>, since the frame length seems to include the parity bit.
|
||||
|
||||
Right, this is a hack, and maybe the Teensy people will integrate it into the library the other day, but at least for the moment it works for me.
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
')
|
Reference in New Issue
Block a user