7 Replies Latest reply on Sep 18, 2012 1:51 AM by zhao.huawei

    dma flag sigal  is not change

    zhao.huawei

      Hi everyone

         

      data flow

         

      pc->>usocket----->>>dma---->>>psockets----GPIF----

         

       FLAGA is dedicated to thread0 ,Flagb is dedicated to thread1,Flagc is dedicated to theread2,and so on.

         

      part code
      fx3_DmaCallback_EP2 (....)
      void fx3_DmaCallback_EP2 (
      CyU3PDmaChannel *chHandle,
      CyU3PDmaCbType_t type,
      CyU3PDmaCBInput_t *input)
      {
      //uint16_t index;
      CyU3PDmaBuffer_t buf_p,inBuf_p,outBuf_p;
      CyU3PReturnStatus_t status = CY_U3P_SUCCESS;
      if (type == CY_U3P_DMA_CB_PROD_EVENT)
      {
      // for debug
      status = CyU3PDmaChannelGetBuffer(chHandle,&inBuf_p,CYU3P_NO_WAIT);
      status = CyU3PDmaChannelCommitBuffer (chHandle, input->buffer_p.count, 0);
      ...............................
      }
      I used CyU3PDmaChannelGetBuffer() API to find data form pc..the CyU3PDmaChannelCommitBuffer () function is return success. my question is why was not the FLAGC signal change
      thanks