Changeset 436 for trunk/hal/tsar_mips32/drivers/soclib_tty.h
- Timestamp:
- Mar 7, 2018, 9:02:03 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_tty.h
r435 r436 52 52 #define TTY_STATUS_RX_FULL 1 // TTY_READ_REG full if 1 53 53 #define TTY_STATUS_TX_FULL 2 // TTY_WRITE_REG full if 1 54 55 /**************************************************************************************** 56 * This Rstructure is used by the soclib_tty_isr for the RX channel. 57 ***************************************************************************************/ 58 59 #define TTY_FIFO_DEPTH 128 60 61 typedef struct tty_fifo_s // 32 bytes 62 { 63 char data[TTY_FIFO_DEPTH]; // one char per slot 64 unsigned int ptr; // next free slot index 65 unsigned int ptw; // next full slot index 66 unsigned int sts; // number of full slots 67 } tty_fifo_t; 68 54 69 55 70 /****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.