Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
を に渡すと、コンパイラ エラーが発生uint8_tしatomic_clrます。エラー: "passing argument 1 from incompatible pointer type"。
uint8_t
atomic_clr
"passing argument 1 from incompatible pointer type"
何故ですか?
volatile unsigned へのポインタである必要があります
#include <atomic.h> void atomic_clr( volatile unsigned * loc, unsigned bits );