Guest
#2309060
HI Im using an exampe (http://gandalf.arubi.uni-kl.de/avr_projects/arm_projects/at91_usbfw_core101_hid100_gcc_20070310b.zip) which is keybord HID implementation. Data transfer from device to host works fine, but in second direction (from host to device) not. The project compiles with no errors. Function which read data from host call's other 'callbacks' function: //============================================================ unsigned char bStatus; do { bStatus = KBD_ReceiveReport(&sKbd, (Callback_f) ReportReceived, 0); } while (bStatus != USB_STATUS_SUCCESS); //============================================================ static void ReportReceived() { if (ISSET(sKbd.sOutputReport.bmLeds, 1)) { //read incoming buffer LED_ON(LED_MEM); } else { LED_OFF(LED_MEM); } } //================================================================ but in my program the void ReportReceived() function is never executed. In program for USB data packet monitor ("USBTrace") i can see that the OUTPUT packet are sending correctly. what is wrong with that project. Has anyone tested it?