lpcware

ANSI compatibility problem on cr_startup_lpc43xx.c file

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by micronpn on Sat Mar 17 04:44:05 MST 2012
The instruction to mix assembly and C source code in GCC compilers is asm("..."); but using ANSI C it has to be replaced by __asm__("...");
So compiling cr_startup file in ANSI C produces an error for every asm() function that has to be changed in __asm__(). This is a compatibility problem that would be solved with an #ifdef or better with a portable.h file.

Outcomes