AnsweredAssumed Answered

Libraries and multi-CPU projects

Question asked by lopez.pedro.001 on May 30, 2012
Another problem, and it is the 4th that i found in few days.

STM8 libraries doesnt support a project with multiples devices, I was able to fix it just including at the beginning of each .c file something like:

(for exampleo for stm8s_uart1.c)

#if defined(UART1)

So, if you have a generic project and you include the uart1 because one of the device use it, when you compile for another device you get an error in that library.