2015-03-12 02:34 AM
this topic is very usefull.
i got another question. I'm using the same ic STM32F105, and i used STM32F103 before. I want to output more than 64 byte data in to MPU in sereval time, but the data is in same part. the code below: void EP1_OUT_Callback(void) { __IO uint16_t wEPVal = 0; u32 volatile n; PMAToUserBufferCopy(&USB_Receive_Buffer[USB_Receive_Length], ENDP1_RXADDR, REPORT_COUNT); USB_Receive_Length += 64; SetEPRxStatus(ENDP1, EP_RX_VALID); // wait for the interrupt n = 5333 * 5; while(n--); // check if this is the last packet wIstr = _GetISTR(); if((wIstr & ISTR_CTR) == 0) { USB_Received_Flag = 1; } } but now i can't find USB_ISTR register now, how can i access the H/W Flag to check ISTR? #hid #usb #send_report