官方库文件在IAR编译系统下应该如何使用?
直接引用库文件时由于stm8s.h的这段代码
/* Check the used compiler */
#if defined(__CSMC__)
#undef _RAISONANCE_
#define _COSMIC_
#elif defined(__RCST7__)
#undef _COSMIC_
#define _RAISONANCE_
#else
#error "Unsupported Compiler!" /* Compiler defines not found */
#endif
编译不能通过,因为编译器既不是cosmic 也不是raisonance
|