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.
ISR の変数に extern データ修飾子を使用しても安全ですか?
C:はい、ただし、変数をキーワード volatile でマークして、その値が複数のスレッドで変更される可能性があることをコンパイラに知らせる必要があります(割り込みは基本的に別のスレッドです)。