cancel
Showing results for 
Search instead for 
Did you mean: 

Libraries and multi-CPU projects

pedro23
Senior
Posted on May 30, 2012 at 10:27

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) 
.... 
#endif

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. #error-library-multi-cpu
0 REPLIES 0