Changeset 0626dba in rtems for c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c
- Timestamp:
- 10/15/14 19:20:14 (8 years ago)
- Branches:
- 4.11, 5, master
- Children:
- d4ab6611
- Parents:
- 694debe
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/15/14 19:20:14)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/16/14 13:58:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/sh/sh7750/sci/sh4uart.c
r694debe r0626dba 78 78 * peripheral module clock in Hz. 79 79 */ 80 uint32_t80 static uint32_t 81 81 sh4uart_get_Pph(void) 82 82 { … … 419 419 * nothing 420 420 */ 421 void421 static void 422 422 sh4uart_handle_error(sh4uart *uart) 423 423 { … … 452 452 { 453 453 int chn = uart->chn; 454 int error_occured = 0;455 454 int parity_error = 0; 456 455 int break_occured = 0; … … 465 464 if ((SCSSR1 & (SH7750_SCSSR1_PER | SH7750_SCSSR1_FER | 466 465 SH7750_SCSSR1_ORER)) != 0) { 467 error_occured = 1;468 466 if (SCSSR1 & (SH7750_SCSSR1_PER | SH7750_SCSSR1_FER)) 469 467 parity_error = 1; … … 476 474 SH7750_SCSSR2_BRK)) != 0 || 477 475 (SCLSR2 & SH7750_SCLSR2_ORER) != 0) { 478 error_occured = 1;479 476 if (SCSSR2 & (SH7750_SCSSR1_PER | SH7750_SCSSR1_FER)) 480 477 parity_error = 1;
Note: See TracChangeset
for help on using the changeset viewer.