Hi,
I get the following error when trying to use a variable in in ASM function-call:
/Applications/Axoloti.app/Contents/Java/CMSIS/Include/core_cmInstr.h:621:72: error: impossible constraint in 'asm'
__ASM ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) ); \
The relevant line is:
inVals[0] = __SSAT(inlet_ENERGYi + offset, bits[0]);
(where 'bits' is an array containing number of bits used for various values).
Is there some way to get this to work?
I can get it to work, using string-substitution, or something, perhaps?
a|x