XINU
device
tty
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
*/
10
void
ttykickout
(
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
}
UART_IER_ERBFI
#define UART_IER_ERBFI
Definition:
uart.h:65
UART_IER_ETBEI
#define UART_IER_ETBEI
Definition:
uart.h:66
xinu.h
全てのシステムヘッダファイルをインクルードする。
uart_csreg::ier
volatile uint32 ier
Definition:
uart.h:17
ttykickout
void ttykickout(struct uart_csreg *csrptr)
Definition:
ttykickout.c:10
uart_csreg
Definition:
uart.h:13
Generated by
1.8.13