Zilog ZUSBOPTS Manual de usuario Pagina 209

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 520
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 208
UM017105-0511 Run-Time Library
Zilog Developer Studio II – ZNEO™
User Manual
181
Example
#include <zneo.h>
void main(void)
{
DI();/* Disable interrupts */
}
EI
EI is an intrinsic function that enables 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 EI(void);
Example
#include <zneo.h>
void main(void)
{
EI(); /* Enable interrupts */
}
getch
getch is a ZILOG function that waits for the next character to appear at the serial port and
returns its value. This function does not wait for end-of-line to return as
getchar does.
getch does not echo the character received.
Synopsis
#include <sio.h>
char getch(void) ;
Returns
The next character that is received at the selected UART.
Example
char ch;
ch=getch();
Vista de pagina 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 519 520

Comentarios a estos manuales

Sin comentarios