Open Wurstnase opened 6 years ago
Good news!
GCC <= 4 needs a _builtin\ function. e.g. __builtin_sqrt.
So for the Arduino IDE we replace now sqrt with the builtin instruction. This will also fit if this is not a constant expression.
dda.c:65:3: warning: initializer element is not a constant expression
(uint32_t)((double)F_CPU / sqrt((double)STEPS_PER_M_X * ACCELERATION / 2000.)),
^
dda.c:65:3: warning: (near initialization for 'c0_P[0]')
The compiler this days doing a good job.