00001
00002
00003
00004
00005
00006 #include "piccolo_all.h"
00007
00021 char c;
00022
00023
00024 #if defined(USE_INTERRUPT)
00026 #pragma interrupt hi_isr
00027 void hi_isr() {
00028 #if defined(USB_INTERRUPT)
00029 USBDeviceTasks();
00030 #endif //USB_INTERRUPT
00031 }
00033 #pragma interruptlow lo_isr
00034 void lo_isr() {
00035 }
00036 #endif //USE_INTERRUPT
00037
00038 void main(void) {
00039 InitializeSystem();
00040
00041 while (!usb_cdc_kbhit()) {
00042 ProcessIO();
00043 }
00044 outString("Isten hozott a PICCOLO projekthez!\n");
00045 outString("hello-int.c program (USB interrupton kezelve)\n");
00046 while (1) {
00047 c=usb_cdc_getc();
00048 printf("Vett karakter: %c = %d\r\n",c,c);
00049 }
00050 }
00051
00052