This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USART Functions Cannot be Found

I am trying to set up UART on a LPC54102J512BD64, when I try to call RingBuffer_init, Chip_UART_SendRB or Chip_UART_ClearStatus I get the error "No Mathcing function for call to 'RingBuffer_Init' etc. There appears to be errors in ring_buffer.h and uart_5410x.h but I cannot edit these headers. Why would this be happening and how can I fix it? Thank you for any help!

Parents
  • I think I may have misunderstood the error and just have not been passing the right variables into the function.

    The function:

     int RingBuffer_Init(RINGBUFF_T *RingBuff,
                              void *buffer,
                              int itemSize,
                              int count,
                              void *(*cpyFunc)(void *dst, const void *src, uint32_t len));
    

    I do not know what to pass for the last line?

     void *(*cpyFunc)(void *dst, const void *src, uint32_t len));
    

Reply
  • I think I may have misunderstood the error and just have not been passing the right variables into the function.

    The function:

     int RingBuffer_Init(RINGBUFF_T *RingBuff,
                              void *buffer,
                              int itemSize,
                              int count,
                              void *(*cpyFunc)(void *dst, const void *src, uint32_t len));
    

    I do not know what to pass for the last line?

     void *(*cpyFunc)(void *dst, const void *src, uint32_t len));
    

Children