What is the syntax for inserting inline assembly using Keil uVision IDE and the ARMCC compiler?
This does not seem to work #define CUSTOM_DELAY() {_asm(nop)}
Note that should be: "For the specific case of creating a tiny delay with the Keil ARM Compiler..."
Again, this is entirely compiler-specific.
"...likely to end up in sorrow."
Indeed; hence it is vitally impotant to read the Manual for any special implications of and/or restriction on such extensions:
www.keil.com/.../armccref_cjabcdad.htm
And then there is CMSIS, which defines a tool independent[1] macro __NOP (core_cm3.h)
Footnotes: [1] Within a set of popular ARM compilers
-- Marcus http://www.doulos.com/arm/