We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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/