XINU
ttykickout.c
Go to the documentation of this file.
1 /* ttykickout.c - ttykickout */
2 
3 #include <xinu.h>
4 
5 /*------------------------------------------------------------------------
6  * ttykickout - "Kick" the hardware for a tty device, causing it to
7  * generate an output interrupt (interrupts disabled)
8  *------------------------------------------------------------------------
9  */
11  struct uart_csreg *csrptr /* Address of UART's CSRs */
12  )
13 {
14  /* Force the UART hardware generate an output interrupt */
15 
16  csrptr->ier = UART_IER_ERBFI | UART_IER_ETBEI;
17 
18  return;
19 }
#define UART_IER_ERBFI
Definition: uart.h:65
#define UART_IER_ETBEI
Definition: uart.h:66
全てのシステムヘッダファイルをインクルードする。
volatile uint32 ier
Definition: uart.h:17
void ttykickout(struct uart_csreg *csrptr)
Definition: ttykickout.c:10