Извиняйте - совсем уже устал от секса с АРМом.
У меня lpc2294 от OLIMEX .
Исходник не столь большой:
main.c
[code] //#include <stdio.h> /* prototype declarations for I/O functions */ #include <LPC22xx.H> /* LPC21xx definitions */
/****************/ /* main program */ /****************/ int main (void) { /* execution starts here */
IODIR0 = 0xFFFFFFFF; IOSET0 = 0xFFFFFFFF; /* initialize the serial interface */ //PINSEL0 = 0x00050000; /* Enable RxD1 and TxD1 */ //U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */ //U1DLL = 97; /* 9600 Baud Rate @ 15MHz VPB Clock */ //U1LCR = 0x03; /* DLAB = 0 */
//printf ("Hello World\n"); /* the 'printf' function call */
while (1) { /* An embedded program does not stop and */ ; /* ... */ /* never returns. We use an endless loop. */ } /* Replace the dots (...) with your own code. */ }[code]
Как можно заметить ето был Hello из примеров к кейлу
Сообщение отредактировал kna - Jan 25 2008, 12:59
|