I get a compiler error when passing a uint8_t
to atomic_clr
. The error is: "passing argument 1 from incompatible pointer type"
.
Why is that?
Should be pointer to volatile unsigned
#include <atomic.h>
void atomic_clr( volatile unsigned * loc,
unsigned bits );