Skip to content

Commit

Permalink
Fix comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Jul 8, 2023
1 parent 0496cf4 commit e4c9d95
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
1 change: 0 additions & 1 deletion include/freertos/tc_ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
/// Two stop bits
#define TCSTOPTWO IO(TERMIOS_IOC_MAGIC, 0xF9)


/// Argument is a Notifiable* pointer. This notifiable will be invoked when all
/// bytes have completed transferring and the transmit engine is idle.
#define TCDRAINNOTIFY IOW(TERMIOS_IOC_MAGIC, 0xE0, 4)
Expand Down
13 changes: 7 additions & 6 deletions src/freertos_drivers/ti/CC32xxUart.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,16 @@ void CC32xxUart::interrupt_handler()
rxBuf->signal_condition_from_isr();
}
}
else
else if (data >= 0 && data <= 0xff)
{
if (data >= 0 && data <= 0xff)
if (rxBuf->space() < 1)
{
++overrunCount;
}
else
{
unsigned char c = data;
if (rxBuf->put(&c, 1) == 0)
{
++overrunCount;
}
rxBuf->put(&c, 1);
rxBuf->signal_condition_from_isr();
}
}
Expand Down
13 changes: 7 additions & 6 deletions src/freertos_drivers/ti/TivaUart.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,16 @@ void TivaUart::interrupt_handler()
rxBuf->signal_condition_from_isr();
}
}
else
else if (data >= 0 && data <= 0xff)
{
if (data >= 0 && data <= 0xff)
if (rxBuf->space() < 1)
{
++overrunCount;
}
else
{
unsigned char c = data;
if (rxBuf->put(&c, 1) == 0)
{
overrunCount++;
}
rxBuf->put(&c, 1);
rxBuf->signal_condition_from_isr();
}
}
Expand Down

0 comments on commit e4c9d95

Please sign in to comment.