C++ programing when generating from CubeMX
Hello Robert!
Sorry for the delay. And thanks for your reply.
Indeed, there were extern "C" in all the generated code, but not around the
extra fucntions added by the code generator around (for exempl) the
static void MX_something functions. Could be a good idea to modify the
code generator so that it addes the extern "C" around the generated C
functions declarations.
Just in case somebody bumps into the same problem: put the ifdef
and endif statements in the user code areas around the functions so that
it doesn't get erased if you regenerate.
Thanks again!
Dora