[an error occurred while processing this directive]
|
/*------------------------------------------------------------------------------
HELLO.C
Copyright 1995-1999 Keil Software, Inc.
------------------------------------------------------------------------------*/
#include #include /*------------------------------------------------
E-mail:
info@telesys.ru
/* for the intended 8051 derivative */
/*------------------------------------------------
The main C function. Program execution starts
here after stack initialization.
------------------------------------------------*/
void main (void) {
Note that an embedded program never exits (because
there is no operating system to return to). It
must loop and execute forever.
------------------------------------------------*/
while (1) {
P1 ^= 0x01; /* Toggle P1.0 each time we print */
printf ("Hello World\n"); /* Print "Hello World" */
}
}
Ответы