00001 /* PICCOLO project 00002 * Copyright (c) 2009 Istvan Cserny (cserny@atomki.hu) 00003 * 00004 */ 00005 00006 #include "piccolo_all.h" 00007 00024 char c; 00025 00026 void main(void) { 00027 InitializeSystem(); 00028 //-- kivárjuk az első karakter beérkezését 00029 while (!usb_cdc_kbhit()) { 00030 ProcessIO(); 00031 } 00032 outString("Isten hozott a PICCOLO projekthez!\n"); 00033 outString("hello-poll.c program (USB polling)\n"); 00034 while (1) { 00035 c=usb_cdc_getc(); 00036 printf("Vett karakter: %c = %d\r\n",c,c); 00037 } 00038 } 00039 00040