[quote user="Andreas Terstegge"]But I noticed that the __NOP definition does not produce an error (in contrast to __nop, __wfi and __wfe when being used in C++ mode.[/quote]That is because the TI ARM compiler has the lower case __nop, __wfi and __wfe as intrinsics, but not the upper case __NOP. [I see as of ARM Optimizing C/C++ Compiler v15.12.0.LTS User's Guide SPNU151L the __nop, __wfi and __wfe intrinsics are now documented, whereas when the problem was first found when the v5.2.x compiler was released the intrinsics were missing from the documentation.] [quote user="Andreas Terstegge"]Could this be a solution to the problem?[/quote]Yes, moving the upper case __NOP inline outside of the #ifndef __cplusplus block could be a solution to the problem.
↧