Zilog ZUSBOPTS Bedienungsanleitung Seite 209

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 520
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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();
Seitenansicht 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 519 520

Kommentare zu diesen Handbüchern

Keine Kommentare