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!
It is looking for a C function pointer, for a memcpy() type function.
Review how the C qsort() function takes compares, it's covered in K&R, fundamental C method.
Oh, OK thank you! :)
I did not recognise:
void *(*cpyFunc)(void *dst, const void *src, uint32_t len));
as a function. It makes a lot more sense now!