Skip to content

Commit

Permalink
Merge pull request contiki-os#1824 from bthebaudeau/cc2538-fix-garble…
Browse files Browse the repository at this point in the history
…d-uart

cc2538: uart: Fix garbled output occurring upon lpm_enter()
  • Loading branch information
g-oikonomou authored Aug 16, 2016
2 parents 9e91a38 + a52a3d9 commit acbc482
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cpu/cc2538/dev/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ permit_pm1(void)
const uart_regs_t *regs;

for(regs = &uart_regs[0]; regs < &uart_regs[UART_INSTANCE_COUNT]; regs++) {
/* Note: UART_FR.TXFE reads 0 if the UART clock is gated. */
if((REG(SYS_CTRL_RCGCUART) & regs->sys_ctrl_rcgcuart_uart) != 0 &&
(REG(regs->base + UART_FR) & UART_FR_TXFE) == 0) {
if((REG(regs->base + UART_FR) & UART_FR_BUSY) != 0) {
return false;
}
}
Expand Down

0 comments on commit acbc482

Please sign in to comment.