You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried expanding the example project to play a bit with it, but i am getting a linking error, which i am not able to solve.
What have i added?
In the hardware_abstraction.h I've added the function declaration with this signature: uint8_t IO_READ_CHARS(uint8_t* chars_array, uint8_t number_of_chars);
UPDATE: When I comment this line in testonia function, the linking passes and everything is executed. So I might have screwed something up in naming, or forgot to link the function somewhere.
Hello people,
I've tried expanding the example project to play a bit with it, but i am getting a linking error, which i am not able to solve.
What have i added?
In the
hardware_abstraction.h
I've added the function declaration with this signature:uint8_t IO_READ_CHARS(uint8_t* chars_array, uint8_t number_of_chars);
In driver.c I've added following function:
In driver.test.fff.cpp added the fake value func like so:
FAKE_VALUE_FUNC(uint8_t, IO_READ_CHARS, uint8_t*, uint8_t);
declared a custom fake function:
And my test is in the following listing:
The error I get on linking is that there is an undefined reference to
IO_READ_CHARS
.Can somebody please tell me what did i do wrong?
The text was updated successfully, but these errors were encountered: