Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

M_SQRT1_2 and other macros undefined after math.h included

I'm developing against the nRF5340 DK for the time being as I wait for hardware. 

Latest nRF SDK using Zephyr.  

This is a porting project and makes use of DSP and float math.  

One particular function uses M_SQRT1_2 macro but when I compile I get an undefined error. 

CONFIG_FPU=y

CONFIG_NEWLIB_LIBC=y 

If I right click and go to the definition it is found.  Scratching my head on this one as it's not the first time I've used NEWLIBC and Zephyr with floating point math. 

Any suggestions would be appreciated. 

Related