Changeset 2d0c3a6 in mainline for uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
- Timestamp:
- 2010-08-12T20:50:50Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ddd7118
- Parents:
- ff586e06 (diff), 527298a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
rff586e06 r2d0c3a6 53 53 #define NAME "s3c24ser" 54 54 #define NAMESPACE "char" 55 56 /* Bits in UTRSTAT register */57 #define S3C24XX_UTRSTAT_TX_EMPTY 0x458 #define S3C24XX_UTRSTAT_RDATA 0x159 60 /* Bits in UFSTAT register */61 #define S3C24XX_UFSTAT_TX_FULL 0x400062 #define S3C24XX_UFSTAT_RX_FULL 0x004063 #define S3C24XX_UFSTAT_RX_COUNT 0x002f64 55 65 56 static irq_cmd_t uart_irq_cmds[] = { … … 169 160 } 170 161 171 if (status & 0x0f)162 if (status != 0) 172 163 printf(NAME ": Error status 0x%x\n", status); 173 164 } … … 202 193 203 194 /* Enable FIFO, Tx trigger level: empty, Rx trigger level: 1 byte. */ 204 pio_write_32(&uart->io->ufcon, 0x01); 195 pio_write_32(&uart->io->ufcon, UFCON_FIFO_ENABLE | 196 UFCON_TX_FIFO_TLEVEL_EMPTY | UFCON_RX_FIFO_TLEVEL_1B); 205 197 206 198 /* Set RX interrupt to pulse mode */ 207 199 pio_write_32(&uart->io->ucon, 208 pio_read_32(&uart->io->ucon) & ~ (1 << 8));200 pio_read_32(&uart->io->ucon) & ~UCON_RX_INT_LEVEL); 209 201 210 202 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.