
Run-Time Library UM017105-0511
180
Zilog Developer Studio II – ZNEO™
User Manual
Functions
Zilog Functions
The following functions are Zilog-specific; each is described on their respective pages, as
referenced below.
•
DI – see page 180
•
EI – see page 181
•
getch – see page 181
•
init_uart – see page 182
•
kbhit – see page 182
•
putch – see page 183
•
RI – see page 183
•
select_port – see page 184
•
SET_VECTOR – see page 184
•
TDI – see page 185
DI
DI is an intrinsic function that disables all interrupts and is inline-expanded by default. If
the
–reduceopt compiler option is selected, then this function is not inline-expanded and
is instead implemented as a regular function.
Synopsis
#include <zneo.h>
intrinsic void DI(void);
char getch( void ) ; Returns the data byte available in the
selected
UART.
int init_uart(int port,unsigned long freq,
unsigned long baud);
Initializes the selected UART for specified
settings
and returns the error status.
int kbhit(void); Checks for receive data available on
selected UART.
int putch( char ) ; Sends a character to the selected UART
and returns the error status.
int select_port(int port); Selects the UART. Default is _UART0.
Comentarios a estos manuales