cancel
Showing results for 
Search instead for 
Did you mean: 

topic to send more than 64 byte topic

mike9307033
Associate II
Posted on March 12, 2015 at 10:34

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
0 REPLIES 0