Rev 1695 | Rev 2023 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1695 | Rev 1738 | ||
|---|---|---|---|
| Line 194... | Line 194... | ||
| 194 | CHARSIZE_MASK = (0<<UCSZ02) | (1<<UCSZ01) | (1<<UCSZ00); |
194 | CHARSIZE_MASK = (0<<UCSZ02) | (1<<UCSZ01) | (1<<UCSZ00); |
| 195 | } |
195 | } |
| 196 | else if (charSize==9) { |
196 | else if (charSize==9) { |
| 197 | CHARSIZE_MASK = (1<<UCSZ02) | (1<<UCSZ01) | (1<<UCSZ00); |
197 | CHARSIZE_MASK = (1<<UCSZ02) | (1<<UCSZ01) | (1<<UCSZ00); |
| 198 | } |
198 | } |
| 199 | UCSR0C = (parityEnabled<< |
199 | UCSR0C = (parityEnabled<<UPM01) | (parityOdd<<UPM00) | (twoStopBits<<USBS0) | CHARSIZE_MASK; |
| 200 | } |
200 | } |
| 201 | 201 | ||
| 202 | 202 | ||
| 203 | void uart_setParity(uint8_t enabled, uint8_t odd) |
203 | void uart_setParity(uint8_t enabled, uint8_t odd) |
| 204 | { |
204 | { |