Zilog functions – Zilog ZUSBOPTS User Manual
Page 208

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
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
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.