I am doing some unit-test with cmocka.
When I try to compile some files of my code with a Mingw32 distribution the following error occurs:
Error: no such instruction: `wdr'
I aggree with the compiler that this instruction isn't known in an windows environment.
When I comment the line
#define wdt_reset() __asm__ __volatile__ ("wdr")
in wdt.h everything is fine.
But I don't want to modify include-files when I test code.
Does anyone know how I can mock out wdr or even tell the compiler to ignor this?
I've already defined a function
with the correspoding compiler instruction but that doesn't help.
Same behaviour with
# define sei() __asm__ __volatile__ ("sei" ::: "memory")
Thank all for replying.