Compiler complaining about type declaration in function prototype
It doesn't know what uint8_t is, because you haven't told it.

You have to add:

#include &lt;stdint.h&gt;


to the top of your program to get those symbols defined.