在IAR中编译STM32工程,遇到
Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned int __iar_builtin_REV16(unsigned int)" (declared at line 199 of "$PROJ_DIR$\CMSIS\core_cm3.h 1124
在core_cm3.h中找到如下行,注释掉“#include <intrinsics.h> ”
then ,it works~